• Hi

    I want to add a page in the backend (from my plugin) but not show it in the menu, is that possible?

    Standard add page, example
    ————————-
    add_submenu_page( ‘quiz’, ‘Add new quiz’, ‘Add new Quiz’, ‘administrator’, ‘add-new’, array( $this, ‘addNewQuizPage’ ) );

    And then I have tried to, $_registered_pages[‘quiz_page_add-new’] = true; but that seems to fail.

    Have searched for a “add_page” method but no luck, well how do I do this?

    Regards // johannes

Viewing 1 replies (of 1 total)
  • You must do this on condition that you have created a menu page called ‘quiz’,and then you can add a submenu page of what you called ‘add-new’.

Viewing 1 replies (of 1 total)
  • The topic ‘Add page but not show in menu’ is closed to new replies.