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

Change or Remove the WordPress howdy message in text

Change Or Remove “Howdy”

The “Howdy” or “Howdy, user” greeting on WordPress is a staple of the world’s most popular content management system. Most, if not all WordPress users are greeted by this message on the top right of their administration menu bar every time they login. The howdy message is almost always visible for logged in WordPress users.
When introducing clients (or friends) to WordPress for the first time, one of the most common instant reactions I have noticed has something to do with the howdy greeting message from WordPress.

Customize WordPress Howdy MessageBut what if you want to change “Howdy”, or even remove it all together?
Maybe you have a client you wish to impress, or you’re just utterly sick of seeing “Howdy” every time you login. Luckily WordPress is easily customizable and changing or removing the howdy text greeting from the WordPress admin bar is very simple.

The message we have setup in the code snippet below (instead of Howdy) is “Hello, welcome back!”

To change or remove the “Howdy” text in the WordPress admin bar edit or remove “Hello, welcome back!” (only) in the snippet below. Otherwise, using the snippet as we have written below will read “Hello, welcome back!”.

How to change the WordPress “Howdy” greeting

Change or remove the Howdy greeting on WordPress Copy and paste the code snippet below into your current theme’s functions.php file.

function replace_howdy( $wp_admin_bar ) {
 $my_account=$wp_admin_bar->get_node('my-account');
 $newtitle = str_replace( 'Howdy,', 'Hello, welcome back!', $my_account->title );
 $wp_admin_bar->add_node( array(
 'id' => 'my-account',
 'title' => $newtitle,
 ) );
 }
 add_filter( 'admin_bar_menu', 'replace_howdy',25 );

Sean Doyle

http://Botcrawl.com

Sean Doyle is an engineer from Los Angeles, California. Sean's primary focuses include Internet Security, Web Spam, and Online Marketing.

Comments ( 21 )

  1. ReplyDebbie Campbell
    Thanks!
  2. Replyowenprescott
    Thanks, I don't get why Wordpress use the word Howdy despite being aimed at a global audience.
  3. ReplyChadwick Gendron
    You rock.
  4. ReplyAnonymous
    Really Nice.. More helpful for the beginners like me.......
  5. ReplyDavid
    Nice! Thanks for this non-destructive code! Beautiful!