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



rest_prepare_block_pattern › WordPress Filter Hooks

Since5.8.0
Deprecatedn/a
apply_filters( 'rest_prepare_block_pattern', $response, $raw_pattern, $request )
Parameters: (3)
  • (WP_REST_Response) $response The response object.
    Required: Yes
  • (object) $raw_pattern The unprepared block pattern.
    Required: Yes
  • (WP_REST_Request) $request The request object.
    Required: Yes
Defined at:
Codex:

Filters the REST API response for a block pattern.





Source

return apply_filters( 'rest_prepare_block_pattern', $response, $raw_pattern, $request );