[wp-trac] [WordPress Trac] #41839: Add "Update available" option to "Plugins" on the admin menu

WordPress Trac noreply at wordpress.org
Fri Jan 12 16:26:24 UTC 2018


#41839: Add "Update available" option to "Plugins" on the admin menu
--------------------------------+------------------------------
 Reporter:  Josiah S. Carberry  |       Owner:
     Type:  enhancement         |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  Menus               |     Version:  4.9
 Severity:  normal              |  Resolution:
 Keywords:  2nd-opinion         |     Focuses:  ui
--------------------------------+------------------------------

Comment (by catchmyfame):

 @Josiah S. Carberry I've wanted this for a while and just wrote up the
 code that does it in a plugin. Essentially you can create your own plugin
 or modify your functions.php.

 {{{
 add_action('admin_menu', 'add_plugin_submenu_items');
 function 'add_plugin_submenu_items() {
     // Add submenu items to the left hand plugins menu to quickly jump to
 the active, inactive, and update available pages.
     if ( current_user_can( 'manage_options' ) ) {
         add_submenu_page( 'plugins.php', 'Active', 'Active',
 'manage_options', 'plugins.php?plugin_status=active');
         add_submenu_page( 'plugins.php', 'Inactive', 'Inactive',
 'manage_options', 'plugins.php?plugin_status=inactive');
         add_submenu_page( 'plugins.php', 'Updates', 'Updates',
 'manage_options', 'plugins.php?plugin_status=upgrade');
     }
 }
 }}}

 The only caveats are that it will always show the Updates submenu option
 even if there aren't any, and it doesn't include the update count if there
 is one.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41839#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list