Opened 3 years ago
Last modified 2 years ago
#12696 new enhancement
Add ordering support to plugins_api() when filtered on tag or search term
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | WordPress.org |
| Component: | WordPress.org site | Version: | |
| Severity: | normal | Keywords: | plugins_api |
| Cc: | apeatling, boonebgorges@… |
Description
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.
Change History (4)
Note: See
TracTickets for help on using
tickets.

Andy, you should have access to the API via your wporgdev sandbox.