Created
March 25, 2015 12:31
-
-
Save mcgregormedia/84f2d4ab4625ab881bd6 to your computer and use it in GitHub Desktop.
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
function mmuk_replace_howdy_message( $wp_admin_bar ) { | |
$my_account = $wp_admin_bar -> get_node( 'my-account' ); | |
$newtitle = str_replace( 'Howdy,', 'Logged in as', $my_account->title ); | |
$wp_admin_bar -> add_node( array( | |
'id' => 'my-account', | |
'title' => $newtitle, | |
) ); | |
} | |
add_filter( 'admin_bar_menu', 'mmuk_replace_howdy_message',25 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment