wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



rest_prepare_block_type › Filtr WordPress Hooks

Od5.5.0
Przestarzałyn/a
apply_filters( 'rest_prepare_block_type', $response, $block_type, $request )
Parametry: (3)
  • (WP_REST_Response) $response The response object.
    Wymagane: Tak
  • (WP_Block_Type) $block_type The original block type object.
    Wymagane: Tak
  • (WP_REST_Request) $request Request used to generate the response.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters a block type returned from the REST API.

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





Źródło

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