WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about rest_pre_echo_response

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/rest-api/class-wp-rest-server.php apply_filters 517 /**
* Filters the REST API response.
*
* Allows modification of the response data after inserting
* embedded data (if any) and before echoing the response data.
*
* @since 4.8.1
*
* @param array $result Response data to send to the client.
* @param WP_REST_Server $server Server instance.
* @param WP_REST_Request $request Request used to generate the response.
*/

Hook Parameters

Parameter Type Name Description
array $result Response data to send to the client.
WP_REST_Server $server Server instance.
WP_REST_Request $request Request used to generate the response.