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



rest_preprocess_comment ›

Desde4.7.0
Obsoleton/a
apply_filters( 'rest_preprocess_comment', $prepared_comment, $request )
Parâmetros: (2)
  • (array) $prepared_comment The prepared comment data for `wp_insert_comment`.
    Required: Yes
  • (WP_REST_Request) $request The current request.
    Required: Yes
Definido em:
Codex:

Filters a comment after it is prepared for the database.

Allows modification of the comment right after it is prepared for the database.





Fonte

return apply_filters( 'rest_preprocess_comment', $prepared_comment, $request );