Skip to content

Instantly share code, notes, and snippets.

@geoffgraham
Created November 25, 2014 19:51
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 geoffgraham/167316c748ea59ce86fb to your computer and use it in GitHub Desktop.
Save geoffgraham/167316c748ea59ce86fb to your computer and use it in GitHub Desktop.
Events Calendar 3.8 // Translate Additional Fields header to something else
add_filter('gettext', 'theme_filter_text', 10, 3);
function theme_filter_text( $translations, $text, $domain ) {
// If this text domain starts with "tribe-"
if(strpos($domain, 'tribe-') === 0) {
// The text to replace
$text = str_replace(
// Text to search for
array('Other'),
// Text to replace it with -- change this for your needs
array('Something Else'),
$text
);
}
return $text;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment