Created
December 4, 2014 15:23
-
-
Save geoffgraham/3a2aa4fe1fa7f845643d to your computer and use it in GitHub Desktop.
Events Calendar 3.8 // Change Page Heading
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
add_filter('tribe_get_events_title', 'change_upcoming_events_title'); | |
function change_upcoming_events_title($title) { | |
// We'll change the title on upcoming view | |
if (tribe_is_upcoming() or tribe_is_map() or tribe_is_photo()) | |
return 'Your New Title Here!'; | |
// In all other circumstances, leave the original title in place | |
return $title; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment