wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



rest_preprocess_comment › Les Filtres WordPress

Depuis4.7.0
Dépréciéen/a
› apply_filters( 'rest_preprocess_comment', $prepared_comment, $request )
Paramètres: (2)
  • () prepared_comment The prepared comment data for `wp_insert_comment`.
    Requis: Oui
  • () request The current request.
    Requis: Oui
Défini(e) dans:
Codex:

Filters a comment added via the REST API after it is prepared for insertion into the database.

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




Source

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