WC_Tracker::get_brands_counts()private staticWC 1.0

Get the number of product brands.

Method of the class: WC_Tracker{}

No Hooks.

Return

Int.

Usage

$result = WC_Tracker::get_brands_counts();

WC_Tracker::get_brands_counts() code WC 9.7.1

private static function get_brands_counts() {
	if ( ! taxonomy_exists( 'product_brand' ) ) {
		return 0;
	}
	return wp_count_terms( 'product_brand' );
}