WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Add backend page without menu item (8 posts)

  1. gsc-leticia
    Member
    Posted 3 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.

  2. jayhewitt
    Member
    Posted 3 years ago #

    HI leticia_larr,

    DId you find a solution for this?

    Thanks!

  3. 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

  4. 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.

  5. gsc-leticia
    Member
    Posted 2 years ago #

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

  6. PMConcepts
    Member
    Posted 2 years ago #

    you're welcome!

  7. edipoReboucas
    Member
    Posted 2 years ago #

    use add_submenu_page with parent slug = null

  8. gsc-leticia
    Member
    Posted 2 years ago #

    Works perfectly, thanks edipoReboucas

Topic Closed

This topic has been closed to new replies.

About this Topic