Uma área de pesquisa sobre o WordPress para devs e autores do tema



rest_prepare_autosave ›

Desde5.0.0
Obsoleton/a
apply_filters( 'rest_prepare_autosave', $response, $post, $request )
Parâmetros: (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
Definido em:
Codex:

Filters a revision returned from the API.

Allows modification of the revision right before it is returned.





Fonte

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