Changing the filter name to 'admin_term_links'

This commit is contained in:
David Marín 2017-11-23 09:33:55 +01:00 committed by GitHub
parent d1274acd02
commit 55972f4623
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 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.
}
}