Skip to main content
added 181 characters in body
Source Link

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. It createsI 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.

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. It creates page such "Edit products".

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

Thanks.

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.

added 11 characters in body
Source Link
Tom J Nowell
  • 60.6k
  • 7
  • 77
  • 147

I am creating a custom wordpressWordPress plugin. I am writing all HTML by yourself. I dontdon't use WP_List_TableWP_List_Table class etc. When I create new page using "add_submenu_page"add_submenu_page method, this page appears in menu. I dontdon't want it. It creates page such "Edit products". 

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

Thanks.

I am creating custom wordpress plugin. I am writing all HTML by yourself. I dont use WP_List_Table class etc. When I create new page using "add_submenu_page" method, this page appears in menu. I dont want it. It creates page such "Edit products". 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...

Thanks.

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. It creates page such "Edit products". 

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

Thanks.

Source Link

Create new page without menu in custom wordpress plugin

I am creating custom wordpress plugin. I am writing all HTML by yourself. I dont use WP_List_Table class etc. When I create new page using "add_submenu_page" method, this page appears in menu. I dont want it. It creates page such "Edit products". 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...

Thanks.