Files
piratepoet/lib/WooCommerce/Helper.php
Amine Ben hammou 6f85c27d4f Fix PHPStan warnings
2019-03-28 15:20:28 -04:00

21 lines
408 B
PHP

<?php
namespace MailPoet\WooCommerce;
class Helper {
function isWooCommerceActive() {
return class_exists('WooCommerce');
}
function wcGetCustomerOrderCount($user_id) {
return wc_get_customer_order_count($user_id);
}
function wcGetOrder($order = false) {
return wc_get_order($order);
}
function wcPrice($price, array $args = array()) {
return wc_price($price, $args);
}
}