I am having issue with admin menu in multisite environment. I have a menu called YRC Settings which has two sub-menus, YRC Global Settings (first on the list) and YRC Homepage Settings (second in the list).
I want to hide the second item keeping the first one visible, so that when admin/user hovers on the parent menu i.e. YRC Settings, the first one (YRC Global Settings) flies out and the second item should not at all appear.
remove_submenu_page( 'yrc_settings_page', 'yrc_home_settings_page' );, but this hides both the sub menus, meaning when I hover over YRC Settings parent menu I don't see any sub menu flying out!
But when I use the same approach in single installation mode, this works. What should I do? According to the requirement I must make the first item visible.
remove_submenu_page( 'yrc_settings_page', 'yrc_home_settings_page'); is used to hide the sub-menu which has the following URL:
- Menu with both sub-menus visible
- What I see when using
- What I require: