diff --git a/includes/class-wc-shortcodes.php b/includes/class-wc-shortcodes.php index 6faa03cfb318b..4cf5afb1f6a93 100644 --- a/includes/class-wc-shortcodes.php +++ b/includes/class-wc-shortcodes.php @@ -397,7 +397,7 @@ public static function product( $atts ) { ob_start(); - $products = new WP_Query( apply_filters( 'woocommerce_shortcode_products_query', $args, $atts ) ); + $products = new WP_Query( apply_filters( 'woocommerce_shortcode_products_query', $args, $atts, null ) ); if ( $products->have_posts() ) : ?>