rest_themes_collection_params WordPress Filter Hook
The rest_themes_collection_params hook allows developers to modify the parameters used when fetching a collection of themes via the REST API. This can be useful for adding support for custom theme sorting or filtering options.
apply_filters( 'rest_themes_collection_params', array $query_params ) #
Filters REST API collection parameters for the themes controller.
Parameters
- $query_params
(array)JSON Schema-formatted collection parameters.
Source
File: wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php
Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |