Support » Plugins and Hacks » Add backend page without menu item

  • Resolved gsc-leticia

    (@leticia_larr)


    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • jayhewitt

    (@jayhewitt)

    HI leticia_larr,

    DId you find a solution for this?

    Thanks!

    gsc-leticia

    (@leticia_larr)

    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

    (@pmconcepts)

    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

    (@leticia_larr)

    Thanks PMConcepts, I will check the code of that plugin.

    PMConcepts

    (@pmconcepts)

    you’re welcome!

    use add_submenu_page with parent slug = null

    Works perfectly, thanks edipoReboucas

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Add backend page without menu item’ is closed to new replies.