woocommerce_product_categories_widget_product_terms_args filter

Closes #10555
This commit is contained in:
Mike Jolley 2016-03-14 15:52:04 +00:00
parent c573a5b75f
commit df75080858
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ class WC_Widget_Product_Categories extends WC_Widget {
} elseif ( is_singular( 'product' ) ) { } elseif ( is_singular( 'product' ) ) {
$product_category = wc_get_product_terms( $post->ID, 'product_cat', array( 'orderby' => 'parent' ) ); $product_category = wc_get_product_terms( $post->ID, 'product_cat', apply_filters( 'woocommerce_product_categories_widget_product_terms_args', array( 'orderby' => 'parent' ) ) );
if ( $product_category ) { if ( $product_category ) {
$this->current_cat = end( $product_category ); $this->current_cat = end( $product_category );