apply_filters( ‘pre_comment_content’, string $comment_content )

In this article

Filters the comment content before it is set.

Parameters

$comment_contentstring
The comment content.

Source

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

Changelog

VersionDescription
1.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.