-
-
Save jesseeproductions/3e99e93e41f05a72cf6c to your computer and use it in GitHub Desktop.
The Events Calendar Community Calendar - Change Organizer to Member and rename Use Saved to Choose
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
/* | |
* The Events Calendar Community Calendar - Change Organizer to Member and rename Use Saved to Choose | |
* @3.8 | |
*/ | |
add_filter('gettext', 'ecp_theme_filter_text', 25, 3); | |
function ecp_theme_filter_text( $translations, $text, $domain ) { | |
// If this text domain starts with "tribe-" | |
if(strpos($domain, 'tribe-events-calendar') === 0) { | |
// Replace upper case, lower case, singular, and plural | |
$text = str_replace( | |
// Text to search for | |
array('Organizer', 'Use Saved '), | |
// Text to replace it with -- change this for your needs | |
array('Member', 'Choose '), | |
$text | |
); | |
} | |
return $text; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment