On this page
apply_filters( 'comment_save_pre', string $comment_content )
Filters the comment content before it is updated in the database.
Parameters
$comment_contentstring-
The comment data.
Source
File: wp-includes/comment.php. View all references
$data['comment_content'] = apply_filters( 'comment_save_pre', $data['comment_content'] );
Related
Used By
| Used By | Description |
|---|---|
| wp_update_comment() wp-includes/comment.php | Updates an existing comment in the database. |
Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/comment_save_pre