Created
February 13, 2014 11:08
-
-
Save danjjohnson/8973315 to your computer and use it in GitHub Desktop.
Sensei: Change 'New Courses' to 'Available Courses'
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', 'translate_text'); | |
add_filter('ngettext', 'translate_text'); | |
function translate_text($translated) { | |
$translated = str_ireplace('New Courses', 'Available Courses', $translated); | |
return $translated; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment