Un motore di ricerca WordPress per sviluppatori e autori di temi



rest_preprocess_comment ›

Da4.7.0
Deprecaton/a
apply_filters( 'rest_preprocess_comment', $prepared_comment, $request )
Parametri: (2)
  • (array) $prepared_comment The prepared comment data for `wp_insert_comment`.
    Richiesto:
  • (WP_REST_Request) $request The current request.
    Richiesto:
Definito a:
Codex:

Filters a comment after it is prepared for the database.

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





Sorgenti

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