How to change the howdy text in WordPress admin bar
Below code will remove the Howdy message from admin bar of WordPress site. In order to do this just copy paste below function to your functions.php file in theme folder.
<?php function replace_howdy( $wp_admin_bar ) { $my_account=$wp_admin_bar->get_node('my-account'); $newtitle = str_replace( 'Howdy,', 'Hi, Administrator', $my_account->title ); $wp_admin_bar->add_node( array( 'id' => 'my-account', 'title' => $newtitle, ) ); } add_filter( 'admin_bar_menu', 'replace_howdy',25 ); ?> |