How can I get the registrations endpoint, using the now built-in WordPress REST API, to return more than 50 results? I have tried several things listed in the WP docs for pagination, so far without success. For instance:
/wp-json/ee/v4.8.29/registrations?per_page=100 or
/wp-json/ee/v4.8.29/registrations?filter[registrations_per_page]=100
is no different from:
/wp-json/ee/v4.8.29/registrations
I also need to set that 100 to a higher limit, once I get it past 50.
Is the another upper limit imposed by WordPress? And if so, how can I lift that? I will have about 300 registrations, and need to dump them all at once.
The default limit is 50 and you can override that default with the limit param as you found. So in your case this will ensure you get all 300 or so registrations:
/wp-json/ee/v4.8.36/registrations?limit=400
Viewing 2 reply threads
The support post ‘JSON endpoint "registrations" only returns 50 results’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.