Skip to content

Instantly share code, notes, and snippets.

@jesseeproductions
Created October 20, 2014 23:52
Show Gist options
  • Save jesseeproductions/3f91775fa341b35f0dd4 to your computer and use it in GitHub Desktop.
Save jesseeproductions/3f91775fa341b35f0dd4 to your computer and use it in GitHub Desktop.
Filter Single Event Title in the Events Calendar 3.8
/**
* Filter Single Event Title in the Events Calendar 3.8 to Remove Upcoming Events
*
*/
add_filter('tribe_events_title_tag', 'ecp_filter_single_title', 10, 4);
function ecp_filter_single_title( $title_filter, $new_title, $title, $sep ) {
if( tribe_is_event() && is_single() ) {
$title_filter = str_replace('Upcoming Events |', '', $title_filter);
}
return $title_filter;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment