comment_save_pre WordPress Filter Hook
The comment_save_pre hook is run before a comment is saved to the database. This hook gives you a chance to modify the comment data before it is saved. You can use this hook to add or remove data from the comment, or even to cancel the save altogether.
apply_filters( 'comment_save_pre', string $comment_content ) #
Filters the comment content before it is updated in the database.
Parameters
- $comment_content
(string)The comment data.
Source
File: wp-includes/comment.php
Changelog
Version | Description |
---|---|
1.5.0 | Introduced. |