Skip to content

Commit

Permalink
Merge pull request #1820 from publishpress/hotfix-1806-pro-api-revisi…
Browse files Browse the repository at this point in the history
…on-integration

Pro API: pass correct arguments to pp_calendar_posts_query_args
  • Loading branch information
olatechpro authored Jan 21, 2025
2 parents a9afdbf + 11afeee commit 3f2b252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/calendar/calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -1356,7 +1356,7 @@ public function get_calendar_posts_for_week($args = [], $context = 'dashboard')
}

// Filter for an end user to implement any of their own query args
$args = apply_filters('pp_calendar_posts_query_args', $args, $context);
$args = apply_filters('pp_calendar_posts_query_args', $args, $context, $this->filters, $this->user_filters);

add_filter('posts_where', [$this, 'posts_where_week_range']);
$post_results = new WP_Query($args);
Expand Down

0 comments on commit 3f2b252

Please sign in to comment.