Merge pull request #8071 from roykho/products-widget

add filter for products widget args
This commit is contained in:
Claudio Sanches 2015-04-29 11:43:55 -03:00
commit 457cf47dbf
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ class WC_Widget_Products extends WC_Widget {
$query_args['orderby'] = 'date';
}
return new WP_Query( $query_args );
return new WP_Query( apply_filters( 'woocommerce_products_widget_query_args', $query_args ) );
}
/**