WC_Tracker::get_category_counts
Get the number of product categories.
Method of the class: WC_Tracker{}
No Hooks.
Returns
Int.
Usage
$result = WC_Tracker::get_category_counts();
WC_Tracker::get_category_counts() WC Tracker::get category counts code WC 10.4.3
private static function get_category_counts() {
return wp_count_terms( 'product_cat' );
}