W3cubDocs

/WordPress

apply_filters( 'preprocess_comment', array $commentdata )

Filters a comment’s data before it is sanitized and inserted into the database.

Parameters

$commentdata

(array) Comment data.

Source

File: wp-includes/comment.php

View on Trac

Changelog

Version Description
1.5.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/preprocess_comment