Opened 9 years ago
Closed 9 years ago
#1509 closed defect (bug) (worksforme)
The Themes API returns only one result and ignores params
Reported by: | lordspace | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | API | Keywords: | |
Cc: |
Description
Hi,
I'd like to get a local copy of available WordPress themes so I can have a super fast autosuggest.
When I access this link I was expecting the results per page to be 100 and the page to be 2. The WP.org api just ignores those params.
https://api.wordpress.org/themes/info/1.1/?action=query_themes&per_page=100&page=2
ideally, I'd like to be able to do the same thing with plugins.
Note: See
TracTickets for help on using
tickets.
You have to use the
$request
parameter: https://api.wordpress.org/themes/info/1.1/?action=query_themes&request[per_page]=100&request[page]=2See also https://developer.wordpress.org/reference/functions/themes_api/ and https://developer.wordpress.org/reference/functions/plugins_api/.