I'm trying to figure out how to add an item to the new menu bar. To be clear, I know how to add items to the menu bar. I want to add something new under the bug plus sign in the admin bar. Here's a pic of the admin bar I'm looking to add an item to.
The code from my plugin looks like this.
$args = array( 'id' => 'test1234', // id of the existing child node (New > Post) 'title' => 'test', // alter the title of existing node 'parent' => 'new-link', // set parent to false to make it a top level (parent) node 'href' => admin_url('admin.php?page=enter_timesheet') ); $wp_admin_bar->add_node( $args );
I'm assuming I just need to modify the 'parent' tag to something, but I'm not sure what. I've found this to be shockingly poorly documented (or my Bingle-foo is failing me).