[wp-meta] [Making WordPress.org] #1278: Plugins Install API: Add ability to order results
Making WordPress.org
noreply at wordpress.org
Thu Oct 1 00:27:16 UTC 2015
#1278: Plugins Install API: Add ability to order results
-------------------------+-------------------------------
Reporter: DrewAPicture | Owner:
Type: enhancement | Status: new
Priority: normal | Component: api.wordpress.org
Keywords: |
-------------------------+-------------------------------
Copied over from #wp12696:
Replying to [ticket:12696 apeatling]:
> 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.
Reply from Otto:
> This wouldn't be terribly difficult to add to the API, but it's
pointless until core supports doing it there and is able to request the
ordering. So, moving to the plugins component.
Now that the arguments for `plugins_api()` have been [#wp34035
documented], paired with the fact that there are existing filters in
`plugins_api()` for modifying arguments, I think there's now a more
compelling case for implementing an 'orderby' (or similar) argument in the
dotorg API.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/1278>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list