Last active
February 29, 2016 13:53
-
-
Save cdillon/b94d74966bab5cfdab61 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Add a link to the Plugins menu to show active plugins. | |
* | |
* Add this, without the <?php line above, to your (child) theme's functions.php. | |
* If using Admin Menu Editor plugin, you will need to reposition link manually. | |
*/ | |
function my_ui_plugins_active() { | |
global $submenu; | |
$submenu['plugins.php'][6] = array( __( 'Active Plugins' ), 'activate_plugins', 'plugins.php?plugin_status=active' ); | |
ksort( $submenu['plugins.php'] ); | |
} | |
add_action( 'admin_menu', 'my_ui_plugins_active' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment