woocommerce_layered_nav_link

woocommerce_layered_nav_link

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_layered_nav_link') is found 2 times:

  • /includes/widgets/class-wc-widget-brand-nav.php line 436
    			}
    
    			echo '<li class="wc-layered-nav-term ' . ( $option_is_set ? 'chosen' : '' ) . '">';
    
    			echo ( $count > 0 || $option_is_set ) ? '<a href="' . esc_url( apply_filters( 'woocommerce_layered_nav_link', $link ) ) . '">' : '<span>'; // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment
    
    			echo esc_html( $term->name );
    
    			echo ( $count > 0 || $option_is_set ) ? '</a> ' : '</span> ';
    
    			echo wp_kses_post( apply_filters( 'woocommerce_layered_nav_count', '<span class="count">(' . absint( $count ) . ')</span>', $count, $term ) );// phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment
    
  • /includes/widgets/class-wc-widget-layered-nav.php line 450
    				$link = str_replace( '%2C', ',', $link );
    			}
    
    			if ( $count > 0 || $option_is_set ) {
    				$link      = apply_filters( 'woocommerce_layered_nav_link', $link, $term, $taxonomy );
    				$term_html = '<a rel="nofollow" href="' . esc_url( $link ) . '">' . esc_html( $term->name ) . '</a>';
    			} else {
    				$link      = false;
    				$term_html = '<span>' . esc_html( $term->name ) . '</span>';
    			}