Description
Filters the text of a comment to be displayed.
Occurrences
Filename | Line Number |
---|---|
wp-includes/comment-template.php | 1088 |
wp-includes/comment.php | 48 |
wp-includes/blocks/comment-content.php | 37 |
wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php | 1094 |
Parameters
Type | Name | Description |
---|---|---|
string | $comment_text | Text of the comment. |
WP_Comment|null | $comment | The comment object. Null if not found. |
array | $args | An array of arguments. |
PHP Doc
/**
* Filters the text of a comment to be displayed.
*
* @since 1.2.0
*
* @see Walker_Comment::comment()
*
* @param string $comment_text Text of the comment.
* @param WP_Comment|null $comment The comment object. Null if not found.
* @param array $args An array of arguments.
*/