WC_Widget_Brand_Nav::filter_out_cats
Filter out all categories and not display them
Метод класса: WC_Widget_Brand_Nav{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WC_Widget_Brand_Nav = new WC_Widget_Brand_Nav(); $WC_Widget_Brand_Nav->filter_out_cats( $cat_args );
- $cat_args(массив) (обязательный)
- Category arguments.
Код WC_Widget_Brand_Nav::filter_out_cats() WC Widget Brand Nav::filter out cats WC 10.3.5
public function filter_out_cats( $cat_args ) {
// phpcs:ignore WordPress.Security.NonceVerification.Recommended
if ( ! empty( $_GET['filter_product_brand'] ) ) {
return array( 'taxonomy' => '' );
}
return $cat_args;
}