How To Change Or Remove The Howdy Message On WordPress User Menu Bar

When you log into WordPress, the first thing you see is the dashboard. You’ll notice that in the upper righthand corner, it’ll say your name. But before your name, it says “Howdy”. This is just the default greeting WordPress comes with.The howdy message is almost always visible for logged in WordPress users.

So If you want to change or remove the “Howdy” text in the WordPress admin bar. So, here is code. Add this code in your theme’s functions.php file of your active child theme (or theme) and Save the file. The message we have setup in the code snippet below (instead of Howdy) is “Welcome”.

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;
}

Leave a Comment

Scroll to Top