Merge pull request #8318 from grey-rsi/master
add woocommerce_get_product_terms filter
This commit is contained in:
commit
dc3b46f7a4
|
@ -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 );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue