You can either replace or remove the WordPress Howdy message in the administrative back-end by adding the following in your WordPress theme’s functions.php file:
It was recently brought to my attention that this method of removing Howdy from the WordPress admin bar no longer works with Version 3.3 because the filter admin_user_info_links had been deprecated. By following a comment at a post regarding the admin_user_info_links filter being gone in 3.3 made by a WordPress core dev Andrew Nacin I’ve updated the code snippet below to replace Howdy in WordPress version 3.3.
Replace the WordPress Howdy Message in Version 3.3
/**
* replace WordPress Howdy
*/
function goodbye_howdy ( $wp_admin_bar ) {
$avatar = get_avatar( get_current_user_id(), 16 );
if ( ! $wp_admin_bar->get_node( 'my-account' ) )
return;
$wp_admin_bar->add_node( array(
'id' => 'my-account',
'title' => sprintf( 'Logged in as, %s', wp_get_current_user()->display_name ) . $avatar,
) );
}
add_action( 'admin_bar_menu', 'goodbye_howdy' );
Replace the WordPress Howdy Message pre Version 3.2
/**
* replace WordPress Howdy
*/
function goodbye_howdy($links)
{
$links = str_replace( 'Howdy', 'Logged in as', $links );
return $links;
}
add_filter( 'admin_user_info_links', 'goodbye_howdy' );
If you’d just like to completely remove the WordPress Howdy message in the admin, and you’re feeling a little fancy, just use the following code snippet:
Remove the WordPress Howdy Message
/**
* remove WordPress Howdy
*/
add_filter( 'admin_user_info_links', create_function('$links', 'return str_replace( "Howdy, ", "", $links );') );
That’s it. These two snippets of code put in your WordPress theme’s functions.php file will allow you to either replace or completely remove the Howdy message in the WordPress admin.