Description
Filters a revision returned from the REST API. Allows modification of the revision right before it is returned.
Occurrences
Filename | Line Number |
---|---|
wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php | 482 |
Parameters
Type | Name | Description |
---|---|---|
WP_REST_Response | $response | The response object. |
WP_Post | $post | The original revision object. |
WP_REST_Request | $request | Request used to generate the response. |
PHP Doc
/**
* Filters a revision returned from the REST API.
*
* Allows modification of the revision right before it is returned.
*
* @since 5.0.0
*
* @param WP_REST_Response $response The response object.
* @param WP_Post $post The original revision object.
* @param WP_REST_Request $request Request used to generate the response.
*/