Merge pull request #8318 from grey-rsi/master

add woocommerce_get_product_terms filter
This commit is contained in:
Claudio Sanches 2015-06-08 10:49:18 -03:00
commit dc3b46f7a4
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ function wc_get_product_terms( $product_id, $taxonomy, $args = array() ) {
$terms = wp_get_post_terms( $product_id, $taxonomy, $args );
}
return $terms;
return apply_filters( 'woocommerce_get_product_terms' , $terms, $product_id, $taxonomy, $args );
}