Filter hook 'pre_comment_content'
in WP Core File wp-includes/comment.php at line 2125
Description
Filters the comment content before it is set.
Occurrences
Filename |
Line Number |
wp-includes/comment.php |
2125 |
Parameters
Type |
Name |
Description |
string |
$comment_content |
The comment content. |
Usage Examples
Example 1
add_filter( 'pre_comment_content', 'wp_filter_kses'
Example 2
add_filter( 'pre_comment_content', 'wp_filter_kses'
PHP Doc
/**
* Filters the comment content before it is set.
*
* @since 1.5.0
*
* @param string $comment_content The comment content.
*/