From cfecd0af2d36d8b6c0494c65be22410ff14ad4f3 Mon Sep 17 00:00:00 2001 From: Sergey Date: Mon, 8 Jun 2015 16:41:11 +0300 Subject: [PATCH] add woocommerce_get_product_terms filter --- includes/wc-term-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/wc-term-functions.php b/includes/wc-term-functions.php index 9504f32343d..67c73595ce0 100644 --- a/includes/wc-term-functions.php +++ b/includes/wc-term-functions.php @@ -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 ); }