Add getOrdersCount() to WooCommerce helper
[MAILPOET-1732]
This commit is contained in:
committed by
M. Shull
parent
74bee5ec1e
commit
29e2cebce3
@@ -532,4 +532,13 @@ class Functions {
|
||||
global $wpdb;
|
||||
return $wpdb->parse_db_host($host);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string|null $type
|
||||
* @param string|null $permission
|
||||
* @return object
|
||||
*/
|
||||
function wpCountPosts($type = null, $permission = null) {
|
||||
return wp_count_posts($type, $permission);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user