admin管理员组文章数量:1415111
In the WordPress dashboard on the users page if on filtering by a certain user role I don't want the parent Users menu to be highlighted - this is because I am going to link to that from another menu.
Is it possible to do this? I have attempted to do it using the parent_menu filter but this doesn't work when trying to unhighlight the standard dashboard parent menus, I can do it if it isn't a standard one such as my own post type, but not users.php
I have attempted all the answers in with no luck.
Is there anyway to achieve this or does WordPress simply not take the parent_file filter into account when setting it's own active menu items for core menu pages?
In the WordPress dashboard on the users page if on filtering by a certain user role I don't want the parent Users menu to be highlighted - this is because I am going to link to that from another menu.
Is it possible to do this? I have attempted to do it using the parent_menu filter but this doesn't work when trying to unhighlight the standard dashboard parent menus, I can do it if it isn't a standard one such as my own post type, but not users.php
I have attempted all the answers in https://stackoverflow/questions/2308569/manually-highlight-wordpress-admin-menu-item with no luck.
Is there anyway to achieve this or does WordPress simply not take the parent_file filter into account when setting it's own active menu items for core menu pages?
Share Improve this question asked Jul 18, 2019 at 11:36 bigdaveygeorgebigdaveygeorge 2074 silver badges12 bronze badges1 Answer
Reset to default 0I am sure, functions of this page will help you: https://codex.wordpress/Function_Reference/remove_menu_page Take your time, understand these removing functions and you'll be done in no time
本文标签: dashboardIs it possible to remove the highlighted menu on Users and highlight a different menu
版权声明:本文标题:dashboard - Is it possible to remove the highlighted menu on Users and highlight a different menu? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745209452a2647795.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论