Skip to content

Instantly share code, notes, and snippets.

@danjjohnson danjjohnson/courses
Created Feb 13, 2014

Embed
What would you like to do?
Sensei: Change 'New Courses' to 'Available Courses'
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
You can’t perform that action at this time.