Improved filter `woocommerce_layered_nav_link`
* Added term and taxonomy as additional parameters.
This commit is contained in:
parent
ca47661388
commit
de02645544
|
@ -451,7 +451,7 @@ class WC_Widget_Layered_Nav extends WC_Widget {
|
|||
}
|
||||
|
||||
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>';
|
||||
} else {
|
||||
$link = false;
|
||||
|
|
Loading…
Reference in New Issue