woocommerce_layered_nav_link
Usage
add_filter( 'woocommerce_layered_nav_link', 'wp_kama_woocommerce_layered_nav_link_filter', 10, 3 ); /** * Function for `woocommerce_layered_nav_link` filter-hook. * * @param $link * @param $term * @param $taxonomy * * @return */ function wp_kama_woocommerce_layered_nav_link_filter( $link, $term, $taxonomy ){ // filter... return $link; }
- $link
- -
- $term
- -
- $taxonomy
- -
Where the hook is called
woocommerce_layered_nav_link
woocommerce/includes/widgets/class-wc-widget-layered-nav.php 450
$link = apply_filters( 'woocommerce_layered_nav_link', $link, $term, $taxonomy );
woocommerce/includes/widgets/class-wc-widget-brand-nav.php 436
echo ( $count > 0 || $option_is_set ) ? '<a href="' . esc_url( apply_filters( 'woocommerce_layered_nav_link', $link ) ) . '">' : '<span>'; // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment