wpseek.com
A WordPress-centric search engine for devs and theme authors



rest_prepare_block_type › WordPress Filter Hooks

Since5.5.0
Deprecatedn/a
apply_filters( 'rest_prepare_block_type', $response, $block_type, $request )
Parameters: (3)
  • (WP_REST_Response) $response The response object.
    Required: Yes
  • (WP_Block_Type) $block_type The original block type object.
    Required: Yes
  • (WP_REST_Request) $request Request used to generate the response.
    Required: Yes
Defined at:
Codex:

Filters a block type returned from the REST API.

Allows modification of the block type data right before it is returned.





Source

return apply_filters( 'rest_prepare_block_type', $response, $block_type, $request );