I would like to delete “All items” and “Add New” buttons inside a custom post type menu in WordPress Admin.

I have a custom post type inside anotoher custom post type made with Tool Types.
But would like to only use the ‘mainmenu’ post type just as a menu where multiple post types are inside.

Mainmenu (custom post type)
– All items
– Add News
– Submenu (custom post type)
– Submenu (custom post type)

So right now the mainmenu is also a custom post type. I don’t mind this as long the All items and Add new buttons are hidden.

Read more here: How to delete "All items" and "Add New" inside a custom post type menu in WordPress Admin?


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: