Created
November 25, 2014 19:51
-
-
Save geoffgraham/167316c748ea59ce86fb to your computer and use it in GitHub Desktop.
Events Calendar 3.8 // Translate Additional Fields header to something else
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
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