pre_comment_content WordPress Filter Hook
The pre_comment_content hook is triggered before a comment is saved to the database. It allows you to modify the comment data before it is stored.
apply_filters( 'pre_comment_content', string $comment_content ) #
Filters the comment content before it is set.
Parameters
- $comment_content
(string)The comment content.
Source
File: wp-includes/comment.php
Changelog
Version | Description |
---|---|
1.5.0 | Introduced. |