rest_themes_collection_params
Filters REST API collection parameters for the themes controller.
Usage
add_filter( 'rest_themes_collection_params', 'wp_kama_rest_themes_collection_params_filter' ); /** * Function for `rest_themes_collection_params` filter-hook. * * @param array $query_params JSON Schema-formatted collection parameters. * * @return array */ function wp_kama_rest_themes_collection_params_filter( $query_params ){ // filter... return $query_params; }
- $query_params(array)
- JSON Schema-formatted collection parameters.
Changelog
Since 5.0.0 | Introduced. |
Where the hook is called
rest_themes_collection_params
wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php 667
return apply_filters( 'rest_themes_collection_params', $query_params );