Last active
July 20, 2017 15:35
-
-
Save andrasguseo/da8bcae5d5ced96feb39e75eba265840 to your computer and use it in GitHub Desktop.
Change the tooltip text on the single event page for all day repeating events
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 | |
/* Change the tooltip text on the single event page for all day repeating events. | |
* | |
* Plugins: The Events Calendar, Events Calendar PRO | |
* Author: Andras Guseo | |
* Last Updated: July 20, 2017 | |
*/ | |
add_filter( 'tribe_get_recurrence_text', function( $default_tooltip ) { | |
if ( tribe_event_is_all_day() && strpos ( $default_tooltip, " that begins at 12:00am" ) ) { | |
$default_tooltip = str_replace ( " that begins at 12:00am", "", $default_tooltip ); | |
} | |
return $default_tooltip; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment