Make WordPress Core

Opened 6 years ago

Closed 3 days ago

Last modified 3 days ago

#12696 closed enhancement (maybelater)

Add ordering support to plugins_api() when filtered on tag or search term

Reported by: apeatling Owned by:
Milestone: WordPress.org Priority: normal
Severity: normal Version:
Component: Plugins Keywords: plugins_api
Focuses: Cc:


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 (14)

comment:1 @apeatling6 years ago

  • Cc apeatling added

comment:2 @nacin5 years ago

  • Milestone changed from Awaiting Triage to WordPress.org site

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

comment:3 @sc0ttkclark5 years ago

Did this get implemented?

comment:4 @boonebgorges4 years ago

  • Cc boonebgorges@… added

comment:5 @Otto422 years ago

  • Component changed from WordPress.org site to Plugins
  • Milestone changed from WordPress.org to Awaiting Review

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.

comment:6 @ryan15 months ago

  • Owner ryan deleted
  • Status changed from new to assigned

comment:7 @slackbot8 months ago

This ticket was mentioned in Slack in #core by lgladdy. View the logs.

comment:8 @slackbot8 months ago

This ticket was mentioned in Slack in #core by lgladdy. View the logs.

comment:9 @tellyworth8 months ago

Are there orderings other that popularity that would be useful? Which are most important?

comment:10 in reply to: ↑ description @Michael Arestad4 months ago

@tellyworth It would be pretty useful to be able to order by date.

comment:11 @swissspidy4 weeks ago

#30321 was marked as a duplicate.

comment:12 @swissspidy4 weeks ago

See #30321: Ordering favorite plugins in alphabetical order would be very useful.

comment:13 @DrewAPicture3 days ago

  • Milestone Awaiting Review deleted
  • Resolution set to maybelater
  • Status changed from assigned to closed

Closing in favor of #meta1278.

comment:14 @DrewAPicture3 days ago

  • Milestone set to WordPress.org
Note: See TracTickets for help on using tickets.