Skip to content

Instantly share code, notes, and snippets.

@danjjohnson
Created February 13, 2014 11:08
Show Gist options
  • Save danjjohnson/8973315 to your computer and use it in GitHub Desktop.
Save danjjohnson/8973315 to your computer and use it in GitHub Desktop.
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