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



rest_prepare_comment ›

Desde4.7.0
Obsoleton/a
apply_filters( 'rest_prepare_comment', $response, $comment, $request )
Parâmetros: (3)
  • (WP_REST_Response) $response The response object.
    Required: Yes
  • (WP_Comment) $comment The original comment object.
    Required: Yes
  • (WP_REST_Request) $request Request used to generate the response.
    Required: Yes
Definido em:
Codex:

Filters a comment returned from the API.

Allows modification of the comment right before it is returned.





Fonte

return apply_filters( 'rest_prepare_comment', $response, $comment, $request );