get_comment_text

Definition:
function get_comment_text( $comment_ID = 0 ) {}

Retrieve the text of the current comment.

Parameters

  • int $comment_ID: The ID of the comment for which to get the text. Optional.

Return values

returns:The comment content

Defined filters

  • get_comment_text
    apply_filters( 'get_comment_text', $comment->comment_content, $comment )

Source code

function get_comment_text( $comment_ID = 0 ) {

	$comment = get_comment( $comment_ID );

	return apply_filters( 'get_comment_text', $comment->comment_content, $comment );

}

1330

No comments yet... Be the first to leave a reply!

Leave a comment