Beautiful Wp.blogspot.com

The best way to Change the Howdy Textual content in WordPress three.three Admin Bar

The best way to Change the Howdy Textual content in WordPress three.three Admin Bar

Have you ever ever labored with a consumer the place you are attempting to customise the WordPress back-end expertise for them? Perhaps you added a custom dashboard widget, removed menu items, and even created custom write panels. Effectively Greg Kerstin (@graphicagenda) was engaged on a challenge the place he wished to change the howdy textual content within the WordPress admin bar. Usually it says Howdy, Username. He was type sufficient to submit a snippet to us by which he reveals the best way to change the howdy textual content and exchange it with Welcome.

Change Howdy to Welcome

All it's important to do is paste the next code in your theme’s features.php file, or create a website plugin.

add_action( 'admin_bar_menu', 'wp_admin_bar_my_custom_account_menu', 11 );

operate wp_admin_bar_my_custom_account_menu( $wp_admin_bar ) 

And you might be completed.

Tutorials