Filters a block type returned from the REST API.
Allows modification of the block type data right before it is returned.
$responseWP_REST_Response
$block_typeWP_Block_Type
$requestWP_REST_Request
return apply_filters( 'rest_prepare_block_type', $response, $block_type, $request );
| Version | Description |
|---|---|
| 5.5.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/rest_prepare_block_type