Support » Developing with WordPress » increase per_page limit in rest api

  • Resolved shanebp

    (@shanebp)


    We need to increase the per_page limit on responses to a rest api request.
    afaik – the limit is 100

    There used to be a way to filter that param, but it seems this filter hook is no longer working: rest_post_collection_params

    Is there any way to increase that limit? Without hacking the codebase?

    We understand the repercussions of increasing the limit, but we need to exceed the per_page in a single call for use in code that will not be distributed.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.