最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

admin menu - remove duplicate name submenu link from the custom post type

programmeradmin3浏览0评论

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'     => __( '' )
发布评论

评论列表(0)

  1. 暂无评论