Created
October 20, 2014 23:52
-
-
Save jesseeproductions/3f91775fa341b35f0dd4 to your computer and use it in GitHub Desktop.
Filter Single Event Title in the Events Calendar 3.8
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
/** | |
* 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