Disable Auto-Expanding Menu in WordPress Admin Menus
Right now, when I click on a menu item in the wordpress admin menu, the section that that page belongs to is automatically expanded.
For instance, if I click on a link in the Settings section then the whole Settings section is expanded:
If, on the other hand, I click on a link in the Appearance menu then the whole Appearance section is expanded:
Is there a function or action that disables that feature? That is to say, I do NOT want these sections to be expanded, but to remain closed like all of the other sections – i.e., like this:
Leave an answer