WC_Brands::recount_all_brands()
Recount all brands.
Метод класса: WC_Brands{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WC_Brands = new WC_Brands(); $WC_Brands->recount_all_brands();
Код WC_Brands::recount_all_brands() WC Brands::recount all brands WC 9.4.2
public function recount_all_brands() { $product_brands = get_terms( array( 'taxonomy' => 'product_brand', 'hide_empty' => false, 'fields' => 'id=>parent', ) ); _wc_term_recount( $product_brands, get_taxonomy( 'product_brand' ), true, false ); }