WC_Tracker::get_brands_counts
Get the number of product brands.
Method of the class: WC_Tracker{}
No Hooks.
Returns
Int.
Usage
$result = WC_Tracker::get_brands_counts();
WC_Tracker::get_brands_counts() WC Tracker::get brands counts code WC 10.5.0
private static function get_brands_counts() {
if ( ! taxonomy_exists( 'product_brand' ) ) {
return 0;
}
return wp_count_terms( 'product_brand' );
}