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 );
  ?>

Related posts:

HTML5 page structure

HTML5 offers more powerful structure comparing to older versions of Html. There are many new …


Partner with Us

We are providing an exclusive partnership offer to individuals and companies who are interested in setting up their own web design & development company. For more information about how to partner with us, please contact us