0

In my plugin I have registered a menu_page; now I need another page. How can I add another page to my plugin without adding another menu item? Is it possible to call it by href?

  • Are you trying to add a subpage to your existing menu item? – TheGentleman Apr 21 '15 at 15:26
  • I just need a page to call from the existing page linked to a menu item I have a menu item 'my_plugin' that call function to render_my_plugin it requires my_plugin_main.html inside it there are some choices these are href to my_plugin_page2 ... I want to create my_plugin_page2.php without link to amenu item or subitem – aghezzi Apr 22 '15 at 15:48
0

Try using remove_menu_page().

https://codex.wordpress.org/Function_Reference/remove_menu_page

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.