Merge pull request #12789 from aelia-co/layerednav-improved-navlink-filter
Improved filter `woocommerce_layered_nav_link`
This commit is contained in:
commit
1675aa51fb
|
@ -451,7 +451,7 @@ class WC_Widget_Layered_Nav extends WC_Widget {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $count > 0 || $option_is_set ) {
|
if ( $count > 0 || $option_is_set ) {
|
||||||
$link = esc_url( apply_filters( 'woocommerce_layered_nav_link', $link ) );
|
$link = esc_url( apply_filters( 'woocommerce_layered_nav_link', $link, $term, $taxonomy ) );
|
||||||
$term_html = '<a href="' . $link . '">' . esc_html( $term->name ) . '</a>';
|
$term_html = '<a href="' . $link . '">' . esc_html( $term->name ) . '</a>';
|
||||||
} else {
|
} else {
|
||||||
$link = false;
|
$link = false;
|
||||||
|
|
Loading…
Reference in New Issue