Created
December 5, 2014 17:05
-
-
Save geoffgraham/33da9072d9a3a8206f99 to your computer and use it in GitHub Desktop.
Events Calendar // Translate Text by Domain
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($text === 'Text to Replace' && $domain === 'tribe-events-calendar') { | |
$text = 'Text to Use Instead'; | |
} | |
return $text; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment