Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Added to work around the issue with Events Calendar Pro returning 404 titles.
- if( function_exists('avoid_404_event_titles')){
- function avoid_404_event_titles() {
- global $wp_query;
- if (property_exists($wp_query, 'tribe_is_event') && $wp_query->tribe_is_event && $wp_query->is_404)
- $wp_query->is_404 = false;
- }
- add_action('template_include', 'avoid_404_event_titles', 1);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement