0

I am creating a custom WordPress plugin. I am writing all HTML by yourself. I don't use WP_List_Table class etc. When I create new page using add_submenu_page method, this page appears in menu. I don't want it. I am creating page such "Edit products". I have page "list of products", I need to add separate page on which admin will can edit particular product.

How can I create such page in my plugin without adding to menu? I tried pass NULL as parent_slug in add_submenu_page but I couldn't display page title for example...

How such pages should be created in wordpress plugin development?

Thanks.

2
  • can you add some context to the question such as why you want this and what problem doing this solves for you? Is this page meant to appear in WP Admin with the menu and toolbar, but not appear in the menu? Or is the entire page including the WP UI all in your HTML? Please use the Edit link to add more information, it will help greatly in understanding the exact meaning of what you wrote and what you want, as well as saving time figuring out what you don't want. Without this you might get answers that answer the question, but are of no use to you, or don't make sense
    – Tom J Nowell
    Jan 16 at 14:33
  • I edited my post.
    – learnle
    Jan 16 at 22:22

0

Your Answer

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

Browse other questions tagged or ask your own question.