WC_Tracker::get_brands_counts()private staticWC 1.0

Get the number of product brands.

Метод класса: WC_Tracker{}

Хуков нет.

Возвращает

int.

Использование

$result = WC_Tracker::get_brands_counts();

Код WC_Tracker::get_brands_counts() WC 9.6.1

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