wordpress / latest / hooks / pre_comment_content.html

apply_filters( 'pre_comment_content', string $comment_content )

Filters the comment content before it is set.

Parameters

$comment_content string
The comment content.

Source

File: wp-includes/comment.php. View all references

$commentdata['comment_content'] = apply_filters( 'pre_comment_content', $commentdata['comment_content'] );

Used By

Used By Description

Changelog

Version Description
1.5.0 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/pre_comment_content