To add a new menu item after user menu in the new menu area wordpress$args = array( 'id' => 'new menu item', 'title' => 'new menu item', 'href' => 'http://www.technomaniya.com/', 'parent' => 'new-content', ); $wp_admin_bar->add_node($args); } add_action('admin_bar_menu', 'custom_button_example2', 60);
- Open function.php file from active theme folder
- Add below code down of that page