apply_filters( 'preprocess_comment', array $commentdata )
Filters a comment’s data before it is sanitized and inserted into the database.
Parameters
- $commentdata
-
Comment data.
Source
File: wp-includes/comment.php
Changelog
Version | Description |
---|---|
5.6.0 | Comment data includes the comment_agent and comment_author_IP values. |
1.5.0 | Introduced. |