woocommerce_layered_nav_any_label
translators: %s: taxonomy name
Использование
add_filter( 'woocommerce_layered_nav_any_label', 'wp_kama_woocommerce_layered_nav_any_label_filter', 10, 3 );
/**
* Function for `woocommerce_layered_nav_any_label` filter-hook.
*
* @param $sprintf
* @param $taxonomy_label
* @param $taxonomy
*
* @return
*/
function wp_kama_woocommerce_layered_nav_any_label_filter( $sprintf, $taxonomy_label, $taxonomy ){
// filter...
return $sprintf;
}
- $sprintf
- -
- $taxonomy_label
- -
- $taxonomy
- -
Где вызывается хук
woocommerce_layered_nav_any_label
woocommerce/includes/widgets/class-wc-widget-layered-nav.php 250
$any_label = apply_filters( 'woocommerce_layered_nav_any_label', sprintf( __( 'Any %s', 'woocommerce' ), $taxonomy_label ), $taxonomy_label, $taxonomy );