WordPress at a glance
function is not described

get_commentdata() WP 0.71

Deprecated from version 2.7.0. It is no longer supported and can be removed in future releases. Use get_comment() instead.

Retrieve an array of comment data about comment $comment_ID.

No Hooks.

Return

Array. The comment data

Usage

get_commentdata( $comment_ID, $no_cache, $include_unapproved );
$comment_ID(int) (required)
The ID of the comment
$no_cache(int)
Whether to use the cache (cast to bool)
$include_unapproved(true|false)
Whether to include unapproved comments

Notes

  • See: get_comment()

Changelog

Since 0.71 Introduced.
Deprecated Since 2.7.0 Use get_comment()

Code of get_commentdata() WP 5.7.1

<?php
function get_commentdata( $comment_ID, $no_cache = 0, $include_unapproved = false ) {
	_deprecated_function( __FUNCTION__, '2.7.0', 'get_comment()' );
	return get_comment($comment_ID, ARRAY_A);
}