Fatal error with custom function
-
I’ve been using a custom function in my theme’s functions.php and it had been working just fine until very recently, when I just discovered that trying to view any event causes a fatal error. Something must have changed on a recent update of the plugin.
Here is the functions code that causes the error:
add_filter('tribe_get_events_title', 'change_upcoming_events_title'); function change_upcoming_events_title($title) { //We'll change the title on upcoming and map views if (tribe_is_upcoming() or tribe_is_map() or tribe_is_photo()) return 'Events Calendar'; //In all other circumstances, leave the original title in place return $title; }
The trouble spot seems to be:
tribe_is_map()
Again, this has been working properly until I noticed the error yesterday.
Any ideas? Thank you!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Fatal error with custom function’ is closed to new replies.