Replace WordPress admin bar welcome text, “Howdy”

,

In some cases you may want a slightly more personal welcome message. Here is a snippet you can use to change the default “Howdy” text.

 

Simply add this code to the “functions.php” file within your child theme.

 

REVEAL CODE

/*
** Replace WordPress "Howdy," welcome text
*/
add_filter( 'admin_bar_menu', 'replace_howdy', 25 );
function replace_howdy( $wp_admin_bar )
{
    $my_account = $wp_admin_bar->get_node( 'my-account' );
    $my_title = 'Welcome,'; //YOUR WELCOME MESSAGE
    $my_title = str_replace( 'Howdy,', $my_title, $my_account->title );
    $wp_admin_bar->add_node( array(
        'id' => 'my-account',
        'title' => $my_title,
    ) );
}

 

We hope this article has helped you customize the standard “Howdy” welcome within the WordPress admin bar. Please take a moment to like us on Facebook, share this on your social media or buy us a cup of coffee.