/** This filter is documented in wp-includes/comment-template.php */
'rendered' =>
apply_filters( 'comment_text',
$comment->comment_content,
$comment ),
'raw' =>
$comment->comment_content,
);
} if ( in_array( 'link',
$fields, true
) ) { $data['link'
] =
get_comment_link( $comment );
} if ( in_array( 'status',
$fields, true
) ) { $data['status'
] =
$this->
prepare_status_response( $comment->comment_approved
);
} if ( in_array( 'type',
$fields, true
) ) { $data['type'
] =
get_comment_type( $comment->comment_ID
);
} if ( in_array( 'author_avatar_urls',
$fields, true
) ) { $data['author_avatar_urls'
] =
rest_get_avatar_urls( $comment );
} if ( in_array( 'meta',
$fields, true
) ) {