wpseek.com
A WordPress-centric search engine for devs and theme authors



rest_prepare_autosave › WordPress Filter Hooks

Since5.0.0
Deprecatedn/a
apply_filters( 'rest_prepare_autosave', $response, $post, $request )
Parameters: (3)
  • (WP_REST_Response) $response The response object.
    Required: Yes
  • (WP_Post) $post The original revision object.
    Required: Yes
  • (WP_REST_Request) $request Request used to generate the response.
    Required: Yes
Defined at:
Codex:

Filters a revision returned from the REST API.

Allows modification of the revision right before it is returned.





Source

return apply_filters( 'rest_prepare_autosave', $response, $post, $request );