In my testing environment, I’ve got one hundred plugins. I’m more interested in seeing first the Active plugins than the complete list (All
).
How can I change the default screen for the Plugins menu item?
In my testing environment, I’ve got one hundred plugins. I’m more interested in seeing first the Active plugins than the complete list (All
).
How can I change the default screen for the Plugins menu item?
You must be logged in to post a comment.
There are two options, modify the menu link
href
attribute or redirect the main screen.Modify menu
Alter the global variable
$submenu
. This method works for Single and Multisite.Problem: the submenu item
Installed Plugins
doesn’t show in bold.Redirect page
Hook into
load-plugins.php
. Multisite detection is needed, but there are no UI problems.And a couple of extras:
1) Rename the main link to
Active
2) Add a submenu to access
All
The submenu link is hacked, as well as some jQuery printed to fix the submenus
active
state: