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
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745209452a4616749.html
评论列表(0条)