Added third parameter with taxonomy to filter call

This commit is contained in:
David Marín 2017-11-23 12:43:37 +01:00 committed by GitHub
parent 50f3db7693
commit 654a036f1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -233,7 +233,7 @@ class WC_Admin_List_Table_Products extends WC_Admin_List_Table {
$termlist[] = '<a href="' . esc_url( admin_url( 'edit.php?product_cat=' . $term->slug . '&post_type=product' ) ) . ' ">' . esc_html( $term->name ) . '</a>';
}
echo implode( ', ', apply_filters( 'admin_term_links-product_cat', $termlist, $this->object->get_id() ) ); // WPCS: XSS ok.
echo implode( ', ', apply_filters( 'admin_term_links-product_cat', $termlist, $this->object->get_id(), 'product_cat' ) ); // WPCS: XSS ok.
}
}
@ -249,7 +249,7 @@ class WC_Admin_List_Table_Products extends WC_Admin_List_Table {
$termlist[] = '<a href="' . esc_url( admin_url( 'edit.php?product_tag=' . $term->slug . '&post_type=product' ) ) . ' ">' . esc_html( $term->name ) . '</a>';
}
echo implode( ', ', apply_filters( 'admin_term_links-product_tag', $termlist, $this->object->get_id() ) ); // WPCS: XSS ok.
echo implode( ', ', apply_filters( 'admin_term_links-product_tag', $termlist, $this->object->get_id(), 'product_tag' ) ); // WPCS: XSS ok.
}
}