woocommerce_layered_nav_any_label хук-фильтр . WC 1.0
translators: %s: taxonomy name
Использование
add_filter( 'woocommerce_layered_nav_any_label', 'filter_function_name_4090', 10, 3 ); function filter_function_name_4090( $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 248
$any_label = apply_filters( 'woocommerce_layered_nav_any_label', sprintf( __( 'Any %s', 'woocommerce' ), $taxonomy_label ), $taxonomy_label, $taxonomy );