[Resolved] Add new item to Admin Bar
I’ve been able to easily add new items to the Admin Bar under the parents “Appearance” or “Comments”.
What I can’t figure out is how to add new items to the “My Account” parent item. I can’t figure out its name.
I want the menu to be something like:
-Edit My Profile
-View all posts
What is the name of the “My Account” parent item?
If I know its name, I can just do the following:
$wp_admin_bar->add_menu( array( 'parent' => 'MY ACCOUNT', 'id' => 'edit', 'title' => __('View all posts'), 'href' => admin_url( 'edit.php') ) );
- The topic ‘[Resolved] Add new item to Admin Bar’ is closed to new replies.