kanbanpress_calendar_query_args

KanbanPress Calendar Add-On: Custom Query Filtering

The KanbanPress Calendar Add-On supports custom query filtering through the `kanbanpress_calendar_query_args` filter hook. This hook allows developers to modify the query arguments used to fetch posts for the calendar view.

Parameters:
- `$query_args` (array): The current query arguments.
- `$board_id` (int): The ID of the current KanbanPress board.

Usage Example:
PHP
function custom_kanbanpress_calendar_filter($query_args, $board_id) {
    // Modify $query_args as needed
    $query_args['meta_query'] = [
        [
            'key' => 'custom_field_key',
            'value' => 'custom_value',
            'compare' => '='
        ]
    ];
    return $query_args;
}
add_filter('kanbanpress_calendar_query_args', 'custom_kanbanpress_calendar_filter', 10, 2);

This filter allows you to add custom query parameters, such as meta queries, taxonomies, or any other valid WP_Query arguments, to customize which posts appear in the KanbanPress calendar view.