gsc-leticia
Member
Posted 2 years ago #
Hi
How can I add a new backend page in my plugin without shows it in a menu?
Normally I add new pages with custom plugin functionality, in a plugin menu box, but now I want a page that doesn't appears in the menu but users can access that page using links inside others plugin pages.
Ideally when that page is acceded, the plugin menu box must be opened too, even none link in the menu was clicked.
Any idea will be appreciated.
jayhewitt
Member
Posted 2 years ago #
HI leticia_larr,
DId you find a solution for this?
Thanks!
gsc-leticia
Member
Posted 2 years ago #
Nop,
What I do in the meanwhile is using a GET parameter, then in the code of the "common" admin page (declared in the plugin menu), show one or another code (HTML-PHP) in depends on the value of the GET parameter received.
Regards
PMConcepts
Member
Posted 2 years ago #
I use this plugin: Exclude Pages from Navigation . This gives me the option to exclude it from the navigation menu. So I can create a page, not give it any attributes, as well as keeping it off the top navigation, so u can call to it VIA links.
gsc-leticia
Member
Posted 2 years ago #
Thanks PMConcepts, I will check the code of that plugin.
PMConcepts
Member
Posted 2 years ago #
edipoReboucas
Member
Posted 1 year ago #
use add_submenu_page with parent slug = null
gsc-leticia
Member
Posted 1 year ago #
Works perfectly, thanks edipoReboucas