comment_save_pre filter-hook . WP 1.5.0
Filters the comment content before it is updated in the database.
Usage
add_filter( 'comment_save_pre', 'filter_function_name_8951' ); function filter_function_name_8951( $comment_content ){ // filter... return $comment_content; }
- $comment_content(string)
- The comment data.
Changelog
Since 1.5.0 | Introduced. |
Where the hook is called
wp-includes/comment.php 2482
$data['comment_content'] = apply_filters( 'comment_save_pre', $data['comment_content'] );
Where in WP core the hook is used WordPress
wp-includes/comment.php 126
add_filter( $filter, 'convert_invalid_entities' );
wp-includes/comment.php 127
add_filter( $filter, 'balanceTags', 50 );