From 11afeee44de2a19ecae742a8e6214ecb11481ef8 Mon Sep 17 00:00:00 2001 From: Kevin Behrens <43488774+agapetry@users.noreply.github.com> Date: Mon, 20 Jan 2025 17:36:57 -0500 Subject: [PATCH] Pro API: pass correct arguments to pp_calendar_posts_query_args Note that an accompanying Planner Pro PR is upcoming. https://github.com/publishpress/PublishPress-Planner/issues/1806 --- modules/calendar/calendar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/calendar/calendar.php b/modules/calendar/calendar.php index 7972231b..808779dd 100644 --- a/modules/calendar/calendar.php +++ b/modules/calendar/calendar.php @@ -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);