cliff
8/10/2018 - 8:45 PM

Allow the REST API to return more than 50 events per page; the `per_page` URL query parameter.

Allow the REST API to return more than 50 events per page; the per_page URL query parameter.

<?php
/**
 * Allow the REST API to return more than 50 events per page; the `per_page` URL
 * query parameter.
 *
 * @link https://gist.github.com/cliffordp/70238bd7546580d653fce7e1851e36bd
 */
add_filter( 'tribe_rest_event_max_per_page', function() { return 250; } );