Core Function
View Source on Trac ↗ insert_hooked_blocks_into_rest_response()
insert_hooked_blocks_into_rest_response( mixed $response, mixed $post ) Hooks into the REST API response for the Posts endpoint and adds the first and last inner blocks.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $response WP_REST_Response | The response object. Required |
| $post WP_Post | Post object. Required |
Return Value
(WP_REST_Response)
The response object.
Function Information
Since Version
6.6.0
Source File
wp-includes/blocks.php
Advertisement