Viewing 2 reply threads
  • Author
    Posts
    • #4276
      davud37ni
      Member

      How does one add a custom menu item what I am wantings is MRDJ Root Menu -> DJS, EVENTS, SUBSCRIPTIONS ETC HOW DO i achieve this?

    • #4277
      davud37ni
      Member

      Ok So i found out how to add a custom menu doing so and a custom post type
      `add_action(‘admin_menu’, ‘my_menu_pages’);
      function my_menu_pages(){
      add_menu_page(‘My Page Title’, ‘Mr Dj’, ‘manage_options’, ‘my-menu’, ‘my_menu_output’ );
      add_submenu_page(‘my-menu’, ‘DJS’, ‘DJS’, ‘manage_options’, ‘edit.php?post_type=djs’ );

      add_submenu_page(‘my-menu’, ‘Events’, ‘Events’, ‘manage_options’, ‘my-menu2’ );
      add_submenu_page(‘my-menu’, ‘Subscriptions’, ‘Subscriptions’, ‘manage_options’, ‘my-menu2’ );
      add_submenu_page(‘my-menu’, ‘Locations’, ‘Locations’, ‘manage_options’, ‘my-menu2’ );

      }

      But my quesiton is when I create a custom postype is their to stop its menu from appearing in the default position and appear in my menu instead ie hide the main post type ?. for djs

    • #4279
      Steve
      Keymaster

      This is outside the scope of Piklist. There might be a plugin for that or you can manipulate the $menu global.

Viewing 2 reply threads
  • You must be logged in to reply to this topic.