woocommerce_product_categories хук-фильтр . WC 1.0
Использование
add_filter( 'woocommerce_product_categories', 'filter_function_name_2125' ); function filter_function_name_2125( $terms ){ // filter... return $terms; }
- $terms
- -
Где вызывается хук
woocommerce_product_categories
woocommerce/includes/class-wc-shortcodes.php 184-187
$product_categories = apply_filters( 'woocommerce_product_categories', get_terms( 'product_cat', $args ) );