diff --git a/includes/rest-api/wpem-rest-events-controller.php b/includes/rest-api/wpem-rest-events-controller.php index 3129378..7803064 100644 --- a/includes/rest-api/wpem-rest-events-controller.php +++ b/includes/rest-api/wpem-rest-events-controller.php @@ -232,6 +232,8 @@ protected function prepare_objects_query( $request ) { $args['tax_query'] = $tax_query; // WPCS: slow query ok. } + $args['author'] = get_current_user_id(); + $args['post_type'] = $this->post_type; return $args;