[wp-trac] [WordPress Trac] #12696: Add ordering support to plugins_api() when filtered on tag or search term
WordPress Trac
wp-trac at lists.automattic.com
Wed Mar 24 23:05:10 UTC 2010
#12696: Add ordering support to plugins_api() when filtered on tag or search term
---------------------------+------------------------------------------------
Reporter: apeatling | Owner: ryan
Type: enhancement | Status: new
Priority: normal | Milestone: 3.1
Component: WordPress.org | Version:
Severity: normal | Keywords: plugins_api
---------------------------+------------------------------------------------
It would be awesome if you could pass an ordering parameter to
plugins_api() that would allow you to return a list of filtered plugins in
a specific order.
I'd love to be able to use the API to return a list of the most popular /
newest / recently updated plugins on the repo that contain the tag
"buddypress".
Something like this would be awesome:
{{{
$plugins = plugins_api( 'query_plugins', array( 'tag' => 'buddypress',
'page' => 1, 'order' => 'popular' );
}}}
Even better, also allow search filtering:
{{{
$plugins = plugins_api( 'query_plugins', array( 'tag' => 'buddypress',
'search' => 'album', 'page' => 1, 'order' => 'popular' );
}}}
I'd be happy to implement this if I can get access to the API source on
WordPress.org.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12696>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list