Changing the filter name to 'admin_term_links'
This commit is contained in:
parent
d1274acd02
commit
55972f4623
|
@ -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 apply_filters( 'term_links-product_cat', implode( ', ', $termlist ), $this->object->get_id() ); // WPCS: XSS ok.
|
||||
echo apply_filters( 'admin_term_links-product_cat', implode( ', ', $termlist ), $this->object->get_id() ); // 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 apply_filters( 'term_links-product_tag', implode( ', ', $termlist ), $this->object->get_id() ); // WPCS: XSS ok.
|
||||
echo apply_filters( 'admin_term_links-product_tag', implode( ', ', $termlist ), $this->object->get_id() ); // WPCS: XSS ok.
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue