I am currently using add_submenu_page to add pages for my plugin. However, I wish to create a page that don’t appear in the admin menu, is that possible?
Leave a Reply
You must be logged in to post a comment.
I am currently using add_submenu_page to add pages for my plugin. However, I wish to create a page that don’t appear in the admin menu, is that possible?
You must be logged in to post a comment.
Set the
parent_slug
property tonull
, example;This will hide the sub menu page from your parent (top level) menu link.
It does not state this in the Codex entry foradd_submenu_page
though.It now states this in the Codex entry for
add_submenu_page
(thanks goto Ian Dunn).