apply_filters( ‘comment_excerpt_length’, int $comment_excerpt_length )

In this article

Filters the maximum number of words used in the comment excerpt.

Parameters

$comment_excerpt_lengthint
The amount of words you want to display in the comment excerpt.

Source

$comment_excerpt_length = apply_filters( 'comment_excerpt_length', $comment_excerpt_length );

Changelog

VersionDescription
4.4.0Introduced.

User Contributed Notes

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