30 lines
610 B
PHP
30 lines
610 B
PHP
<?php
|
|
|
|
define('ABSPATH', getenv('WP_ROOT') . '/');
|
|
|
|
require_once ABSPATH . 'wp-load.php';
|
|
require_once ABSPATH . 'wp-admin/includes/admin.php';
|
|
if(!class_exists('\MailPoet\Premium\DI\ContainerConfigurator')) {
|
|
require_once './PremiumContainerConfigurator.php';
|
|
}
|
|
|
|
function wc_get_customer_order_count(int $user_id): int {
|
|
return 0;
|
|
}
|
|
|
|
/**
|
|
* @param mixed $order
|
|
* @return mixed
|
|
*/
|
|
function wc_get_order($order = false) {
|
|
return false;
|
|
}
|
|
|
|
function wc_price(float $price, array $args = []): string {
|
|
return '';
|
|
}
|
|
|
|
function wc_get_product($the_product = false, $deprecated = array()) {
|
|
return null;
|
|
}
|