How to customize Howdy in WordPress Admin Bar. You can change or remove “Howdy” text in WordPress Admin Bar manually. Let us learn how to change Howdy manually in WordPress.
What is WordPress Howdy?
The WordPress Howdy text is displayed in the WordPress dashboard in the top right hand corner. The WordPress Howdy message is shown before the username.
Change the Howdy Text in WordPress
The simplest way is to edit theme’s functions.php file. Log in to your WordPress account and open your theme’s functions.php file with a text editor.
Now paste the following code into the theme’s functions.php file and save it:
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 );
You can also change the “Welcome” text with your own customized text to be displayed before your username. Simply replace “Welcome” with the words you would like.
Please remember to save the functions.php file before you exit.