• Leo Plaw

    (@leoplaw)


    I have used the following code to add a submenu to a custom post type.

    add_action('admin_menu', 'add_client_admin_pages');
    
    function add_client_admin_pages () {
       add_submenu_page( 'edit.php?post_type=clients', "Clients Options", "Options", "edit_clients", "clients_options", "clients_import_export" );
    }

    This adds the sub menu to the expandable side menu in the admin. But, the sub menu does not appear in the flyout menu that appears when that menu group is collapsed.

    Am I doing something wrong here, or is there bug adding submenus with custom post types?

  • The topic ‘Admin submenu add_submenu_page issues’ is closed to new replies.