admin管理员组

文章数量:1384595

I was wondering what would be the proper way to remove submenu with duplicate name in custom post type in the admin. I tried to use remove_submenu_page() however since its a duplicate it is showing same slug for menu and submenu /wp-admin/edit.php?post_type=portfolio and to use that function my understanding slugs should be different

I was wondering what would be the proper way to remove submenu with duplicate name in custom post type in the admin. I tried to use remove_submenu_page() however since its a duplicate it is showing same slug for menu and submenu /wp-admin/edit.php?post_type=portfolio and to use that function my understanding slugs should be different

Share Improve this question asked Apr 26, 2020 at 17:35 810311810311 417 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

The following code seems to work and remove duplicate name from Porfolio custom post type

'all_items'     => __( '' )

本文标签: admin menuremove duplicate name submenu link from the custom post type