Merge pull request #8071 from roykho/products-widget
add filter for products widget args
This commit is contained in:
commit
457cf47dbf
|
@ -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 ) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue