I always share tutorials for you to easily remove all the default WordPress branding from your client’s WordPress website to give a personal touch to the back-end of your client’s WordPress website. In this tutorial, I’ll show you how to easily change Howdy text in WordPress admin bar with a simple snippet. Just following this simple step to do it.
Just add following snippet to your current theme’s functions.php file:
// replace WordPress Howdy function replace_howdy( $wp_admin_bar ) { $my_account=$wp_admin_bar->get_node('my-account'); $newtitle = str_replace( 'Howdy,', 'Hi,', $my_account->title ); $wp_admin_bar->add_node( array( 'id' => 'my-account', 'title' => $newtitle, ) ); } add_filter( 'admin_bar_menu', 'replace_howdy',25 );
That will do the job!
Love it man: always like customizing back-end WP for my clients – much appreciated!! :)
Your welcome :)