Move WC functions to WC Helper
This commit is contained in:
committed by
M. Shull
parent
5bd51baef8
commit
5c2b34e9da
@@ -31,18 +31,6 @@ class Functions {
|
||||
return call_user_func_array('add_action', func_get_args());
|
||||
}
|
||||
|
||||
function wcGetCustomerOrderCount($user_id) {
|
||||
return call_user_func_array('wc_get_customer_order_count', [$user_id]);
|
||||
}
|
||||
|
||||
function wcGetOrder($order = false) {
|
||||
return call_user_func_array('wc_get_order', [$order]);
|
||||
}
|
||||
|
||||
function wcPrice($price, array $args = array()) {
|
||||
return call_user_func_array('wc_price', [$price, $args]);
|
||||
}
|
||||
|
||||
function __($text, $domain = 'default') {
|
||||
return __($text, $domain);
|
||||
}
|
||||
|
Reference in New Issue
Block a user