[wp-trac] [WordPress Trac] #24209: Install Themes/Plugins Custom Page Hooks

WordPress Trac noreply at wordpress.org
Sun Apr 28 03:04:05 UTC 2013


#24209: Install Themes/Plugins Custom Page Hooks
-----------------------------+-----------------------------
 Reporter:  amereservant     |      Owner:
     Type:  enhancement      |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Upgrade/Install  |    Version:  3.5.1
 Severity:  normal           |   Keywords:  has-patch
-----------------------------+-----------------------------
 Upon trying to add a custom page to the '''Plugins > Add New''' section
 for private plugins, I realized there wasn't a hook that allowed
 overriding the plugin_api call.

 The custom tab on the page could easily be added via the
 ''install_plugins_tab'' filter, but in the '''class-wp-plugin-install-
 list-table.php''' class method ''prepare_items()'', there isn't a hook to
 override the api call.

 I checked the functions for the themes and it's the same thing, so I've
 added the patches containing the proposed filters for both classes in
 order to help future customization of WordPress by developers.

 Here's an example of the custom tab and the desired results via the hooks
 in a plugin:

 [[Image(http://i.imgur.com/iF9gbMf.png)]]

 These filters can also be used to prohibit clients from adding 3rd-party
 plugins for security & performance reasons and even limit them to only
 using a private Repository API.

 Thanks!

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/24209>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list