You do not need a callback function at all.
You could display (yet another) custom edit screen, but if the custom post type is set up correctly you should be able to reach it simply by pointing to http://yourdomain.com/wp-admin/post.php?post=9999&action=edit
where 9999
is any post ID that corresponds to a post of said type.
Hence you can use post.php?post=9999&action=edit
as the menu slug (see the codex page of add_menu_page for reference on parameters) with add_submenu_page
and you’re good to go:
add_submenu_page(
'parent_slug',
'Edit My Special Post', // page title, change to liking
'Edit SP', // menu title, change to liking
'edit_posts', // required capability, change to liking
'post.php?post=9999&action=edit' // menu slug, change post ID
);
The last parameter, the callback function, you don’t need at all.
Related Posts:
- Possibilities for the edit.php admin panel? [closed]
- Is It Possible To Add Custom Post Type Menu As Another Custom Post Type Sub Menu
- Change the text on the Publish button
- Placing a Custom Post Type Menu Above the Posts Menu Using menu_position?
- Row actions for custom post types?
- Loading External Scripts in Admin but ONLY for a Specific Post Type?
- Register CPTs using Dashicons for admin menu icon in WP 3.8
- How can I remove the “Add New” button in my custom post type?
- Remove “posts” from admin but show a custom post
- Add content in custom post type page after the title and before columns
- Change the edit page for a custom post type?
- How to check if I’m on a custom post type archive in the admin area
- Admin Filter – Add Post Type Description on Post Type Page
- how to group custom post types
- How do I filter the excerpt metabox description in admin?
- How to add custom columns to Custom Post Type admin screen
- Is it OK to move admin menu items?
- Hide/Show only specific categories in wp-admin new-post.php
- Best way to filter featured image text for a custom post type?
- WordPress Custom Post Type Admin Page really slow
- Get page by template?
- How to give position to Submenu under custom post type
- Add content before/after admin post wp-list-table
- Custom post type Admin Page
- Post slug changed using code doesn’t reflect on editor when post is published
- How Do I Programmatically Better Organize Custom Post Type Menus?
- Filtering Posts by Multiple Taxonomy Terms such as in an Admin Post Listing?
- WP Admin default view mode for Custom Post Type
- Is there a way to keep a custom menu expanded when editing a custom post type?
- Remove date and category filters when editing custom post types
- Ordering Post 2 Post admin meta box by meta from CPT
- Using custom post types in submenu + custom title
- Custom Metabox with Taxonomy Dropdown – Saving Issue
- how to create my own edit.php admin page code or template for my custom post type
- Displaying Post Title on Post Edit page?
- Backend search; include CPT meta?
- How to programatically set the post title of a CPT on wp-admin
- How to Change the Title of a Meta Box on a Specified Custom Post Type? [duplicate]
- Make a custom column sortable, by custom post count
- Sort custom post types by last name in the backend
- Using multiple instances of wp_editor in Custom Post Type admin area
- How i add new link after Edit | Quick Edit | Trash | View in quick edit section
- Custom Post Type Name Causing Problem
- How to add post_author column to custom post type
- Use a textarea for a custom post type
- Restrict categories to a custom post type
- Changing the header on post listing page in admin area
- How do I add a custom button to my “edit” list? ( edit.php?post_type= ) beside “Add New”
- WordPress User Roles, Custom Post Types, and Admin views
- Add text to post list/edit screens?
- Adding menu_order to CPT admin page
- Remove “Get Shortlink” button in admin of custom post type
- Need functionality with all post list available at edit.php
- Show hierarchical relationship between to custom post types on admin list
- Show Custom Post Type values in WordPress grid view
- How to make in WordPress admin panel sortable column for the custom field, that count the number of page impressions?
- WP-Admin edit.php & post.php slowdown after import of 10k users
- wp_nav_menu() mark current item ancestor of custom post type
- How to remove ‘create new post’ entry for a custom post type?
- How to make post sticky in the admin page?
- How to customize admin posts based on the user who is logged in
- Get all of user’s custom post types in WP Admin for plugin
- Change headers in admin posts list
- Admin notice not displaying
- Custom Post Type + 20k posts = blank/404 within Admin edit.php [duplicate]
- How do increase the amount of links shown down the left in the admin menu?
- Remove rows in the manage post/page view
- Admin not showing all custom post type posts and views not working
- How to avoid manage posts screen duplicates when two plugins use the same library
- Unable to retrieve any posts of CPT in wp-admin
- Display post meta on edit page in admin
- Insert & order custom post types in/as submenu
- Modify action buttons for custom post type
- Admin Pointers on a custom post type
- Add a button or image button that calls wp functions in the wp-admin
- Selecting a post in Dashboard
- Custom Post List View: Page or something else?
- Using default WP menu functionality to link to custom post-type listing?
- Custom admin post.php page
- Custom Taxonomy back-end customizations
- How to add a custom-post-type post within another custom-post-type post edit screen using AJAX?
- Filter term taxonomy metabox in custom post type
- CPT post count is 0 for the authors in the User list
- Addition of custom option panel crashes Media Library & Admin Area
- Tracking changes in admin-page so user gets warning when leaving the page
- Filter hierarchical custom post type admin page by parent, and include children & grandchildren
- Admin Filter – Add Post Type Description on Post Type Page
- Custom post type editor with dynamic selects, one drop down populating a second second drop down not working
- WP-ADMIN – Listing all CPT in “posts” listing
- manage_edit-{post_type}_sortable_columns sorts, but wrong!
- Is there a way to establish parent/child relationship in WP menu links exclusively?
- Custom Postype specific changes in admin panel
- Grouping of CPTs and taxonomies into menu groups in admin
- It’s possible to hide body copy box for a custom post type?
- Show data from one Custom Post Type in another Custom Post Type
- Add a custom text to admin footer in a Custom Post Type page
- Creat new admin url for custom post type
- Custom Field values not Showing in Edit Page of Custom Post Type
- WordPress custom post type capabilities issue
- Set thumbnail and title for a post type archive (not post itself!)