How to Change the WordPress “Howdy” Message to a Custom Welcome

Here’s a fun tip I found over at the WordPress StackExchange the other day. It’s a quick function that allows you to change the “Howdy” message that you usually see when you’re logged into the WordPress dashboard. I’ve used it to create my own custom message:

Add this to your theme’s functions.php file and customize the message:

1
2
3
4
5
6
7
8
9
10
11
12
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;
}

Replace the ‘Welcome’ with any custom greeting you like. Click save and refresh your dashboard to see the instant changes.

Featured Plugin - WordPress Wiki Plugin

To get a wiki up and running you used to need to install Mediawiki and toil away for days configuring it... not any more! This plugin gives you *all* the functionality you want from a wiki, in WordPress!!!
Find out more

Featured Plugin - WordPress Membership Site Plugin

If you're thinking about starting a paid, or just private, membership site then this is truly the plugin you've been looking for. Easy to use, massively configurable and ready to go out of the box!
Find out more

Featured Plugin - WordPress Newsletter Plugin

Now there's no need to pay for a third party service to sign up, manage and send beautiful email newsletters to your subscriber base - this plugin has got the lot.
Find out more

Featured Plugin - WordPress Google Maps Plugin

Simply insert google maps into posts, sidebars and pages - show directions, streetview, provide image overlays and do it all from a simple button and comprehensive widget.
Find out more

Featured Plugin - WordPress Q&A Site Plugin

It's now incredibly easy to start your own Q&A site using nothing more than WordPress - The Q&A plugin simply and brilliantly transforms any site, or page, into a perfect support or Q&A environment.
Find out more

Featured Plugin - WordPress Infinite SEO Plugin

Fully integrated with the SEOMoz API, complete with automatic links, sitemaps and SEO optimization of your WordPress setup - this is the only plugin you need to help you rank your site number 1 on Google - nothing else compares.
Find out more

Featured Plugin - WordPress Pop-Up Chat Plugin

No javascript required, no third part chat engine, just fully featured chat right in your own database on your own WP sites - couldn't be easier.
Find out more

Featured Plugin - WordPress Appointments Plugin

Take, set and manage appointments and client bookings without having to leave WordPress. Appointments+ makes it easy.
Find out more

Featured Plugin - WordPress Facebook Plugin

Would you like to add Facebook comments, registration, 'Like' buttons and autoposting to your WP site? Well, The Ultimate Facebook plugin has got that all covered!
Find out more

Comments (7)

  1. While that changes it in the backend, my frontend users still see Howdy.

    I have yet to found a fix for this, and until then you may as well use the “Edit Howdy” plugin instead.

    • This Works

      // replace WordPress Howdy in WordPress 3.3
      function replace_howdy( $wp_admin_bar ) {
      $my_account=$wp_admin_bar->get_node(‘my-account’);
      $newtitle = str_replace( ‘Howdy,’, ‘Welcome’, $my_account->title );
      $wp_admin_bar->add_node( array(
      ‘id’ => ‘my-account’,
      ‘title’ => $newtitle,
      ) );
      }
      add_filter( ‘admin_bar_menu’, ‘replace_howdy’,25 );

      • Thanks Timothy, you really helped me out with that.
        Just a warning for anyone else copying and pasting this code though you may need to replace the inverted commas as I did. This may work straight away (or it may have been messed around with like Timothy’s code by the commenting system):

        1
        2
        3
        4
        5
        6
        7
        8
        9
        10
        
        // replace WordPress Howdy in WordPress 3.3
        function replace_howdy( $wp_admin_bar ) {
        $my_account=$wp_admin_bar->get_node('my-account');
        $newtitle = str_replace( 'Howdy,', 'Hi,', $my_account->title );
        $wp_admin_bar->add_node( array(
        'id' => 'my-account',
        'title' => $newtitle,
        ) );
        }
        add_filter( 'admin_bar_menu', 'replace_howdy',25 );

Participate