How to raise the maximum number of items returned in resultset
-
When we do
GET https://mysite.com/wp-json/wp/v2/posts/
the API limit the max number of items returned to 100.
While I can see the logic in setting this limit and then using pagination, for our internal use we wold like to remove the limit or raise it.I’m sure we can hook somewhere to remove the limit, but where?
I found this snippet by @danielbachhuber https://github.com/WP-API/WP-API/issues/2316#issuecomment-188776865 but I can’t get it do anything, maybe it’s for a previous release of WP API?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to raise the maximum number of items returned in resultset’ is closed to new replies.