title: WordPress REST API - more than 10 posts
body: <p>I searched this issue and tried several solution with no luck.</p>
  
  <p>My main route is here:
  <a href="https://cnperformance.wpengine.com/wp-json/wp/v2/products?_embed" rel="noreferrer">https://cnperformance.wpengine.com/wp-json/wp/v2/products?_embed</a></p>
  
  <p>I installed the 'WP REST API filter parameter' plugin to restore filter removed when REST API moved to WordPress core.</p>
  
  <p>I've tried:
  <a href="https://cnperformance.wpengine.com/wp-json/wp/v2/products?_embed&amp;?filter[per_page]=-1" rel="noreferrer">https://cnperformance.wpengine.com/wp-json/wp/v2/products?_embed&amp;?filter[per_page]=-1</a></p>
  
  <p>and </p>
  
  <p><a href="https://cnperformance.wpengine.com/wp-json/wp/v2/products?_embed&amp;?filter[posts_per_page]=-1" rel="noreferrer">https://cnperformance.wpengine.com/wp-json/wp/v2/products?_embed&amp;?filter[posts_per_page]=-1</a></p>
  
  <p>I've also tried this in functions.php</p>
  
  <pre><code>add_filter( 'rest_endpoints', function( $endpoints ){
      if ( ! isset( $endpoints['/wp/v2/products'] ) ) {
          return $endpoints;
      }
      unset( $endpoints['/wp/v2/products'][0]['args']['per_page']['maximum'] );
      return $endpoints;
  });
  </code></pre>
  
  <p>reference here: <a href="https://github.com/WP-API/WP-API/issues/2316" rel="noreferrer">https://github.com/WP-API/WP-API/issues/2316</a></p>
  
  <p>I've set the value of posts_per_page to 100, -1, didn't make a difference. I also tried just adding the parameters '&amp;posts_per_page=-1 without the filter query and that didn't work either. Any help or insights greatly appreciated!</p>