woocommerce_layered_nav_term_html
Usage
add_filter( 'woocommerce_layered_nav_term_html', 'wp_kama_woocommerce_layered_nav_term_html_filter', 10, 4 ); /** * Function for `woocommerce_layered_nav_term_html` filter-hook. * * @param $term_html * @param $term * @param $link * @param $count * * @return */ function wp_kama_woocommerce_layered_nav_term_html_filter( $term_html, $term, $link, $count ){ // filter... return $term_html; }
- $term_html
- -
- $term
- -
- $link
- -
- $count
- -
Where the hook is called
woocommerce/includes/widgets/class-wc-widget-layered-nav.php 461
echo apply_filters( 'woocommerce_layered_nav_term_html', $term_html, $term, $link, $count );