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?
Is there a simple way to determine the URL instead of a callback function when adding a menu item (like with ‘add_menu_page()’)?
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()’)?