Skip to content

Instantly share code, notes, and snippets.

@jesseeproductions
Created November 4, 2014 17:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jesseeproductions/3e99e93e41f05a72cf6c to your computer and use it in GitHub Desktop.
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
/*
* 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