WordPress at Your Fingertips
function is not described

WC_Tracker::get_category_counts() private WC 1.0

Get the number of product categories.

{} It's a method of the class: WC_Tracker{}

No Hooks.

Return

Int.

Usage

$result = WC_Tracker::get_category_counts();

Code of WC_Tracker::get_category_counts() WC 5.9.0

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