Last active
December 25, 2015 03:28
-
-
Save kelly-tribe/6909509 to your computer and use it in GitHub Desktop.
Altering or Removing Headings on Calendar and List Views
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 | |
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 'Upcoming Parties'; | |
//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