pre_comment_content filter-hook . WP 1.5.0
Filters the comment content before it is set.
Usage
add_filter( 'pre_comment_content', 'filter_function_name_343' ); function filter_function_name_343( $comment_content ){ // filter... return $comment_content; }
- $comment_content(string)
- The comment content.
Changelog
Since 1.5.0 | Introduced. |
Where the hook is called
pre_comment_content
wp-includes/comment.php 2097
$commentdata['comment_content'] = apply_filters( 'pre_comment_content', $commentdata['comment_content'] );
Where in WP core the hook is used WordPress
wp-includes/comment.php 1296
remove_filter( 'pre_comment_content', 'wp_filter_post_kses' );
wp-includes/comment.php 1297
add_filter( 'pre_comment_content', 'wp_filter_kses' );
wp-includes/comment.php 3511
remove_filter( 'pre_comment_content', 'wp_filter_post_kses' );
wp-includes/comment.php 3512
add_filter( 'pre_comment_content', 'wp_filter_kses' );
wp-includes/comment.php 126
add_filter( $filter, 'convert_invalid_entities' );
wp-includes/comment.php 127
add_filter( $filter, 'balanceTags', 50 );
wp-includes/comment.php 252
add_filter( 'pre_comment_content', 'wp_rel_ugc', 15 );
wp-includes/comment.php 2087
add_filter( 'pre_comment_content', 'wp_filter_post_kses' );
wp-includes/comment.php 2089
add_filter( 'pre_comment_content', 'wp_filter_kses' );
wp-includes/comment.php 2115
remove_filter( 'pre_comment_content', 'wp_filter_post_kses' );
wp-includes/comment.php 2116
remove_filter( 'pre_comment_content', 'wp_filter_kses' );