woocommerce_layered_nav_link

woocommerce_layered_nav_link

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_layered_nav_link') is found 2 times:

  • /includes/widgets/class-wc-widget-brand-nav.php line 436
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    }
     
    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
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
        $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>';
    }