Want to put something else besides “Howdy” and “Log Out” in the upper right hand corner? It’s easy!
add_filter('admin_user_info_links', 'add_user_id_to_top'); function add_user_id_to_top($links) { global $current_user; get_currentuserinfo(); $links[] = ' | User ID: '. $current_user->ID; return $links; }
In this example, we’re adding the current user’s ID to the top. I also like adding the blog ID up there when working on a WordPress network.
add_filter('admin_user_info_links', 'add_site_id_to_top'); function add_site_id_to_top($links) { global $blog_id; $links[] = ' | Site ID: '. $blog_id; return $links; }