leticia_larr
Member
Posted 1 year 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 1 year ago #
HI leticia_larr,
DId you find a solution for this?
Thanks!
leticia_larr
Member
Posted 1 year 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 1 year 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.
leticia_larr
Member
Posted 1 year ago #
Thanks PMConcepts, I will check the code of that plugin.
PMConcepts
Member
Posted 1 year ago #
edipoReboucas
Member
Posted 1 year ago #
use add_submenu_page with parent slug = null
leticia_larr
Member
Posted 9 months ago #
Works perfectly, thanks edipoReboucas