On this page
apply_filters( 'rest_pattern_directory_collection_params', array $query_params )
Filter collection parameters for the block pattern directory controller.
Parameters
$query_paramsarray-
JSON Schema-formatted collection parameters.
Source
File: wp-includes/rest-api/endpoints/class-wp-rest-pattern-directory-controller.php. View all references
return apply_filters( 'rest_pattern_directory_collection_params', $query_params );
Related
Used By
| Used By | Description |
|---|---|
| WP_REST_Pattern_Directory_Controller::get_collection_params() wp-includes/rest-api/endpoints/class-wp-rest-pattern-directory-controller.php | Retrieves the search parameters for the block pattern’s collection. |
Changelog
| Version | Description |
|---|---|
| 5.8.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/rest_pattern_directory_collection_params