Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Howdy from admin bar #4

Closed
wants to merge 2 commits into from
Closed

Conversation

jukra
Copy link

@jukra jukra commented Oct 17, 2018

Removes Howdy text from admin bar. For issue #3

@jukra jukra mentioned this pull request Oct 17, 2018
@luizbills
Copy link
Owner

luizbills commented Oct 17, 2018

@jukra thanks man, I will to test soon

@luizbills
Copy link
Owner

luizbills commented Oct 18, 2018

  • Please fix the code style. Use this reference.
  • Put options in settings.php always in alphabetical order.
  • Don't break line twice after um add_action/add_filter.

Let me know if you have any questions.

@luizbills
Copy link
Owner

Btw, your code don't work in all languages. I suggest you something like this:

add_action( 'admin_bar_menu', 'wp_tweaks_remove_howdy', 11 );
function wp_tweaks_remove_howdy ( $wp_admin_bar ) {
	$current_user = wp_get_current_user();
	$avatar = get_avatar( $current_user->ID, 28 );

	$wp_admin_bar->add_node( [
		'id' => 'my-account',
		'title' => $current_user->display_name . $avatar
	] );
}

@luizbills luizbills closed this Oct 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants