Created
August 10, 2018 20:45
-
-
Save cliffordp/70238bd7546580d653fce7e1851e36bd to your computer and use it in GitHub Desktop.
Allow the REST API to return more than 50 events per page; the `per_page` URL query parameter.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; } ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment