Add getOrdersCount() to WooCommerce helper

[MAILPOET-1732]
This commit is contained in:
Rostislav Wolny
2019-03-22 11:56:19 +01:00
committed by M. Shull
parent 74bee5ec1e
commit 29e2cebce3
5 changed files with 53 additions and 4 deletions

View File

@@ -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);
}
}