diff --git a/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php b/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php index 2ebf47a1eab..310bd2367e0 100644 --- a/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php +++ b/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php @@ -303,7 +303,7 @@ abstract class WC_REST_CRUD_Controller extends WC_REST_Posts_Controller { // Check flag to use post_date vs post_date_gmt. if ( true === $request['dates_are_gmt'] ) { if ( isset( $request['before'] ) || isset( $request['after'] ) ) { - $args['date_query']['column'] = 'post_date_gmt'; + $args['date_query'][0]['column'] = 'post_date_gmt'; } }