Meta Box
Support Forum
Support › General › How to disable Custom Posttype entries in sub-menu?
I want to disable "View All" and "Add new" in the sub menu:
I tried to just remove the text but there are still empty fields
How can I do this without adding/changing code?
Hi,
You can use the WP function remove_submenu_page() to remove a sub-menu page. Refer to this topic https://stackoverflow.com/questions/43452565/how-to-delete-all-items-and-add-new-inside-a-custom-post-type-menu-in-wordpr
remove_submenu_page()