X

Replace “Howdy” in WordPress 3.3+ Admin Bar

Snippets by IsItWP

WordPress has a “Howdy” text in the admin bar. You can replace “Howdy” in the admin bar in WordPress 3.3 or above with any custom welcome text for the admin users.

Instructions: Add the following code to the functions.php file of your WordPress theme and replace “Howdy” with your word in the code.


<?php
// 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,', 'Logged in as', $my_account->title );            
    $wp_admin_bar->add_node( array(
        'id' => 'my-account',
        'title' => $newtitle,
    ) );
}
add_filter( 'admin_bar_menu', 'replace_howdy',25 );
?>

You may also enjoy removing WordPress logo from admin bar.

Comments   Leave a Reply

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WordPress Launch Checklist

The Ultimate WordPress Launch Checklist

We've compiled all the essential checklist items for your next WordPress website launch into one handy ebook.
Yes, Send Me the Free eBook!