top level admin page for editing a certain post
-
Hallo,
I’m using a post type ‘front page’ (and if necessary create one post of this type using ‘wp_insert_post()’). The owner of the webpage should be able to edit the front page, but it should be difficult to create additional pages of type ‘front page’. That’s why I need a top level menu item that links to an admin page where the only ‘front page’ can be edited. What’s the best way to do that?
1.
Is there a simple way to determine the URL instead of a callback function when adding a menu item (like with ‘add_menu_page()’)?2.
Or is there a function that returns or prints the HTML code needed to display the edit-post-page (which one could use in the callback function in ‘add_menu_page()’)?Cheers
Philipp
- The topic ‘top level admin page for editing a certain post’ is closed to new replies.