comment_edit_pre filter-hook . WP 2.0.0
Filters the comment content before editing.
Usage
add_filter( 'comment_edit_pre', 'filter_function_name_191' ); function filter_function_name_191( $comment_content ){ // filter... return $comment_content; }
- $comment_content(string)
- Comment content.
Changelog
Since 2.0.0 | Introduced. |
Where the hook is called
comment_edit_pre
comment_edit_pre
wp-admin/includes/comment.php 127
$comment->comment_content = apply_filters( 'comment_edit_pre', $comment->comment_content );
wp-admin/includes/class-wp-comments-list-table.php 889
$comment_content = apply_filters( 'comment_edit_pre', $comment->comment_content );