WC_Tracker::get_category_counts │ private static │ WC 1.0

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() code WC 11.3.0

private static function get_category_counts() {
	return wp_count_terms( 'product_cat' );
}