WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about rest_prepare_block_type

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php apply_filters 339 /**
* Filters a block type returned from the REST API.
*
* Allows modification of the block type data right before it is returned.
*
* @since 5.5.0
*
* @param WP_REST_Response $response The response object.
* @param WP_Block_Type $block_type The original block type object.
* @param WP_REST_Request $request Request used to generate the response.
*/

Hook Parameters

Parameter Type Name Description
WP_REST_Response $response The response object.
WP_Block_Type $block_type The original block type object.
WP_REST_Request $request Request used to generate the response.