Created
July 16, 2015 19:22
-
-
Save digitalinkwell/02f7f098e17a1ae33860 to your computer and use it in GitHub Desktop.
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', 'change_howdy', 10, 3); | |
function change_howdy($translated, $text, $domain) { | |
if (!is_admin() || 'default' != $domain) | |
return $translated; | |
if (false !== strpos($translated, 'Howdy')) | |
return str_replace('Howdy', 'Welcome', $translated); | |
return $translated; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment