-
-
Save tamarazuk/4bfcbe52010e9ef443c2 to your computer and use it in GitHub Desktop.
Events Calendar Filter Requests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Changes to the-events-calendar.class.php | |
// In list_ajax_call() added | |
$args = apply_filters('tribe_events_ajax_query_args', $args); //general | |
$args = apply_filters('tribe_events_ajax_list_query_args', $args); //specific | |
// right above | |
$query = TribeEventsQuery::getEvents( $args, true ); | |
// In calendar_ajax_call() added | |
$query_args = apply_filters('tribe_events_ajax_query_args', $query_args); //general | |
$query_args = apply_filters('tribe_events_ajax_calendar_query_args', $query_args); //specific | |
// right above | |
query_posts( $query_args ); | |
// Changes to events-calendar-pro.php | |
// In wp_ajax_tribe_photo() added | |
$args = apply_filters('tribe_events_ajax_query_args', $args); //general | |
$args = apply_filters('tribe_events_ajax_photo_query_args', $args); //specific | |
// right above | |
$query = TribeEventsQuery::getEvents( $args, true ); | |
// In wp_ajax_tribe_week() added | |
$args = apply_filters('tribe_events_ajax_query_args', $args); //general | |
$args = apply_filters('tribe_events_ajax_week_query_args', $args); //specific | |
// right above | |
$query = TribeEventsQuery::getEvents( $args, true ); | |
// In wp_ajax_tribe_event_day() added | |
$args = apply_filters('tribe_events_ajax_query_args', $args); //general | |
$args = apply_filters('tribe_events_ajax_day_query_args', $args); //specific | |
// right above | |
$query = TribeEventsQuery::getEvents( $args, true ); | |
// Changes to tribe-geoloc.class.php | |
// In ajax_tribe_geosearch() added | |
$defaults = apply_filters('tribe_events_ajax_query_args', $defaults); //general | |
$defaults = apply_filters('tribe_events_ajax_map_query_args', $defaults); //specific | |
// right above | |
$query = TribeEventsQuery::getEvents( $defaults, true ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment