top_ten_rest_api_get_items_params
Filters the query parameters accepted by the popular posts REST endpoint.
Type: filter
Since: 3.0.0
Source: includes/frontend/class-rest-api.php line 344
Parameters
| Type | Name | Description |
|---|---|---|
array |
$args |
Collection parameters, keyed by parameter name. |
Usage
add_filter( 'top_ten_rest_api_get_items_params', function($args) {
// ...
return $args;
} );