WordPress at a glance
filter is not described

rest_block_directory_collection_params filter-hook . WP 5.5.0

Filters collection parameters for the block directory controller.

Usage

add_filter( 'rest_block_directory_collection_params', 'filter_function_name_8919' );
function filter_function_name_8919( $query_params ){
	// filter...

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

Changelog

Since 5.5.0 Introduced.

Where the hook is called

WP_REST_Block_Directory_Controller::get_collection_params()
rest_block_directory_collection_params
wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php 322
return apply_filters( 'rest_block_directory_collection_params', $query_params );

Where in WP core the hook is used WordPress

Usage not found.