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