How to Add a Link to the Drop-Down User Menu in the Admin Bar?
You want to use $wp_admin_bar->add_node( $args ). Below is a tested working example. function wpse_add_toolbar_edit($wp_admin_bar) { $wp_admin_bar->add_node( array( ‘id’ => ‘mylink’, ‘title’ => ‘My New Link’, ‘href’ => ‘mailto:[email protected]’, ‘parent’ => ‘user-actions’ ) ); } add_action(‘admin_bar_menu’, ‘wpse_add_toolbar_edit’, 999); Note: The parent param adds the link to an existing ID. If you need to find the … Read more