wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



rest_prepare_block_type › WordPress Filter Hooks

Seit5.5.0
Veraltetn/v
apply_filters( 'rest_prepare_block_type', $response, $block_type, $request )
Parameter: (3)
  • (WP_REST_Response) $response The response object.
    Erforderlich: Ja
  • (WP_Block_Type) $block_type The original block type object.
    Erforderlich: Ja
  • (WP_REST_Request) $request Request used to generate the response.
    Erforderlich: Ja
Definiert in:
Codex:

Filters a block type returned from the REST API.

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





Quellcode

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