Improved filter `woocommerce_layered_nav_link`

* Added term and taxonomy as additional parameters.
This commit is contained in:
Diego Zanella 2017-01-09 19:27:01 +00:00
parent ca47661388
commit de02645544
1 changed files with 1 additions and 1 deletions

View File

@ -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;