Make WordPress Core

Opened 16 years ago

Closed 11 years ago

Last modified 11 years ago

#12696 closed enhancement (maybelater)

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

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

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

#1 @apeatling
16 years ago

  • Cc apeatling added

#2 @nacin
16 years ago

  • Milestone Awaiting TriageWordPress.org site

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

#3 @sc0ttkclark
16 years ago

Did this get implemented?

#4 @boonebgorges
15 years ago

  • Cc boonebgorges@… added

#5 @Otto42
13 years ago

  • Component WordPress.org sitePlugins
  • Milestone WordPress.orgAwaiting 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.

#6 @ryan
12 years ago

  • Owner ryan removed
  • Status newassigned

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


12 years ago

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


12 years ago

#9 @tellyworth
12 years ago

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

#10 in reply to: ↑ description @michael-arestad
11 years ago

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

#11 @swissspidy
11 years ago

#30321 was marked as a duplicate.

#12 @swissspidy
11 years ago

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

#13 @DrewAPicture
11 years ago

  • Milestone Awaiting Review
  • Resolutionmaybelater
  • Status assignedclosed

Closing in favor of #meta1278.

#14 @DrewAPicture
11 years ago

  • MilestoneWordPress.org
Note: See TracTickets for help on using tickets.