Recent

crp_rest_api_max_limitfilter

crp_rest_api_max_limit

Filters the maximum number of related posts the REST API will return.

Type: filter
Since: 4.4.0
Source: includes/frontend/class-rest-api.php line 234

Parameters

Type Name Description
int $max Maximum allowed limit. Default 100.

Usage

add_filter( 'crp_rest_api_max_limit', function($max) {
    // ...
    return $max;
} );