Rename filter prefix from wc_ to woocommerce_

This commit is contained in:
Tanel Jüris 2015-03-02 12:09:24 +02:00
parent d9a568bbea
commit fe60425eeb
1 changed files with 2 additions and 2 deletions

View File

@ -1244,13 +1244,13 @@ class WC_Product {
$cats_array = array(0);
// Get tags
$terms = apply_filters( 'wc_get_related_product_tag_terms', wp_get_post_terms( $this->id, 'product_tag' ), $this->id );
$terms = apply_filters( 'woocommerce_get_related_product_tag_terms', wp_get_post_terms( $this->id, 'product_tag' ), $this->id );
foreach ( $terms as $term ) {
$tags_array[] = $term->term_id;
}
// Get categories
$terms = apply_filters( 'wc_get_related_product_cat_terms', wp_get_post_terms( $this->id, 'product_cat' ), $this->id );
$terms = apply_filters( 'woocommerce_get_related_product_cat_terms', wp_get_post_terms( $this->id, 'product_cat' ), $this->id );
foreach ( $terms as $term ) {
$cats_array[] = $term->term_id;
}