Last active
March 25, 2018 19:17
-
-
Save adambradford/b58119bb7776034b16fdd632ee4d14e5 to your computer and use it in GitHub Desktop.
Customise the 'Howdy/Hi' message in the WordPress toolbar
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
<?php | |
//* Add this to your functions.php file. Do NOT include the opening php tag | |
//* Customise the 'Howdy/Hi' message in the toolbar | |
function howdy_message($translated_text, $text, $domain) { | |
$new_message = str_replace('Howdy', 'Welcome', $text); | |
return $new_message; | |
} | |
add_filter('gettext', 'howdy_message', 10, 3); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment