Filters the REST API response for a block pattern.
$responseWP_REST_Response
$raw_patternobject
$requestWP_REST_Request
return apply_filters( 'rest_prepare_block_pattern', $response, $raw_pattern, $request );
| Version | Description |
|---|---|
| 5.8.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/rest_prepare_block_pattern