Inspiration For Creative Minds
Home » Labs » How to Replace Howdy Text in WordPress 3.3 Admin Bar  

Filed under Labs

Here is a piece of WordPress code which allows you to change/remove “Howdy Text” in admin bar. For doing this you need to copy and paste the following piece of code to your functions.php

// replace WordPress Howdy in WordPress 3.3
function replace_howdy( $wp_admin_bar ) {
    $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 );
It's only fair to share...Share on Google+Tweet about this on TwitterShare on Facebook

Posts you may like: