WordPress at Your Fingertips
filter is not described

rest_pattern_directory_collection_params filter-hook . WP 5.8.0

Filter collection parameters for the pattern directory controller.

Usage

add_filter( 'rest_pattern_directory_collection_params', 'filter_function_name_8783' );
function filter_function_name_8783( $query_params ){
	// filter...

	return $query_params;
}
$query_params(array)
JSON Schema-formatted collection parameters.

Changelog

Since 5.8.0 Introduced.

Where the hook is called

WP_REST_Pattern_Directory_Controller::get_collection_params()
rest_pattern_directory_collection_params
wp-includes/rest-api/endpoints/class-wp-rest-pattern-directory-controller.php 342
return apply_filters( 'rest_pattern_directory_collection_params', $query_params );

Where in WP core the hook is used WordPress

Usage not found.