comment_excerpt_length WordPress Filter Hook
The comment_excerpt_length hook allows you to control the length of the excerpt for comments. This hook is useful if you want to ensure that comments are not too long or too short. You can use this hook to set the length of the excerpt to be whatever you want.
apply_filters( 'comment_excerpt_length', int $comment_excerpt_length ) #
Filters the maximum number of words used in the comment excerpt.
Parameters
- $comment_excerpt_length
(int)The amount of words you want to display in the comment excerpt.
Source
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |