block_core_navigation_insert_hooked_blocks_into_rest_response
block_core_navigation_insert_hooked_blocks_into_rest_response ( $response, $post )
Parameters:- (WP_REST_Response) response The response object.
- (WP_Post) post Post object.
Returns:- (WP_REST_Response) The response object.
Defined at: - Introduced in WordPress: 6.5.0
- Deprecated in WordPress: —
Description
Hooks into the REST API response for the core/navigation block and adds the first and last inner blocks.