woocommerce_layered_nav_term_html

woocommerce_layered_nav_term_html

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_layered_nav_term_html') is found 1 times:

  • /includes/widgets/class-wc-widget-layered-nav.php line 461
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
        $term_html .= ' ' . apply_filters( 'woocommerce_layered_nav_count', '<span class="count">(' . absint( $count ) . ')</span>', $count, $term );
     
        echo '<li class="woocommerce-widget-layered-nav-list__item wc-layered-nav-term ' . ( $option_is_set ? 'woocommerce-widget-layered-nav-list__item--chosen chosen' : '' ) . '">';
        // phpcs:ignore WordPress.Security.NonceVerification.Recommended, WordPress.Security.EscapeOutput.OutputNotEscaped
        echo apply_filters( 'woocommerce_layered_nav_term_html', $term_html, $term, $link, $count );
        echo '</li>';
    }
     
    echo '</ul>';
     
    return $found;

See this hook used in plugins: