how to hide wordpress submenu page -


I have to hide some subpages from my plugin menu, my plugin is the menu code

  Add_manu_page ($ page_title, $ menu_title, $ capacity, $ parent_slug, "addProduct", tap, 21); Add_submenu_page ($ parent_slug, $ page_title. "", "", $ Ability, $ parent_slug, ""); // Product section add_submenu_page ($ parent_slug, $ page_title. "- Add product", "Add product", $ ability, $ parent_slug. "-add-product", "addProduct"); Add_submenu_page ($ parent_slug, $ page title. "- View Product", "View Product", $ Capability, $ parent_slug. "-View-Product", "View Product"); Add_submenu_page ($ parent_slug, $ page_title. "- Edit product", "Edit product", $ ability, $ parent_slug. "-Edit-product", "EditApplication"); Add_submenu_page ($ parent_slug, $ page_title. "- Delete product", "Edit product", $ capacity, $ parent_slug. "-Edit-product", "EditApplication");  

I want to edit my products and delete the product page from my plugin menu, if I have empty menu title fields, then it shows the difference in the menu.

Can you tell me how to do this or should I call these files directly

set to clear - will hide the menu link

  add_submenu_page (empty, $ page_title. "- Delete product", "edit product", $ capacity, $ Parent_slug. "-edit-product", "edit product");  

Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -