Skip to content

Commit

Permalink
#31 userwise query improved for event listing
Browse files Browse the repository at this point in the history
  • Loading branch information
hiteshmakvana committed Mar 25, 2021
1 parent 070c02a commit 4cfa74a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions includes/rest-api/wpem-rest-events-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4cfa74a

Please sign in to comment.