W3cubDocs

/WordPress

apply_filters( ‘comment_excerpt_length’, int $comment_excerpt_length )

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

Version Description
4.4.0 Introduced.

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