Created
June 18, 2013 16:23
-
-
Save jo-snips/5806869 to your computer and use it in GitHub Desktop.
The Events Calendar - Filter Translation
This file contains hidden or 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
function filter_translations($translation, $text, $domain) { | |
if ($domain == 'tribe-events-calendar') { | |
switch ($text) { | |
case 'View All Events': | |
$translation = 'View The Calendar'; | |
break; | |
} | |
} | |
return $translation; | |
} | |
add_filter('gettext', 'filter_translations', 10, 3); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment