eventorganiser_is_event_query
(filter)
Filters whether the query is an event query.
This should be true
if the query is for events, false
otherwise. The
third parameter, $exclusive
qualifies if this means 'query exclusively
for events' or not. If true
then this filter should return true
only
if the query is exclusively for events.
Parameters
bool
|
$bool |
Whether the query is an event query.
|
\WP_Query
|
$query |
The WP_Query instance to check.
|
bool
|
$exclusive |
Whether the check if for queries exclusively for events.
|
Example Usage
add_filter( 'eventorganiser_is_event_query', 'my_callback_function', 10, 3 );
function my_callback_function( $bool, $query, $exclusive ){
//Change first value and return it
return $bool
};