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
1 Answer
Reset to default 0The 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
版权声明:本文标题:admin menu - remove duplicate name submenu link from the custom post type 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744522063a2610514.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论