Last active
May 21, 2018 20:04
-
-
Save braddalton/f420a758c3bf3e50cf40c321dd48652c to your computer and use it in GitHub Desktop.
Modify Howdy in Admin Bar https://wp.me/p1lTu0-hw4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'admin_bar_menu', 'replace_howdy', 25 ); | |
function replace_howdy( $wp_admin_bar ) { | |
$my_account = $wp_admin_bar->get_node('my-account'); | |
$newtitle = str_replace( 'Howdy,', 'Welcome,', $my_account->title ); | |
$wp_admin_bar->add_node( array( | |
'id' => 'my-account', | |
'title' => $newtitle, | |
) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment