Do you want to change or remove the ‘Howdy, Admin’ greeting message in the WordPress Admin Bar?
The “Howdy Admin” greeting in the WordPress admin bar can feel informal and out of place for many users. Changing this greeting allows for a more personalized and professional touch to your website’s backend.
By customizing the greeting, you can ensure it aligns better with your brand’s tone, provides a more familiar expression for you and your team, or eliminates potential translation issues for non-English speaking users.
This small change can contribute to a more cohesive and user-friendly WordPress admin experience. Use the below code snippet to change the welcome greeting message in the WordPress admin bar.
/**
* Replace Howdy text in the Admin Bar
*
* @param object $wp_admin_bar
* @return void
*/
function maverick_replace_admin_bar_howdy($wp_admin_bar)
{
// Get 'my-account' node
$my_account = $wp_admin_bar->get_node('my-account');
// Replace 'Howdy,' in the below line with your desired text for the admin bar
$new_title = str_replace('Howdy,', 'Welcome,', $my_account->title);
// Add new node
$wp_admin_bar->add_node([
'id' => 'my-account',
'title' => $new_title,
]);
}
add_filter('admin_bar_menu', 'maverick_replace_admin_bar_howdy', 25);
If you wish to remove it, just replace ‘Howdy,’ with ” in the above code.