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.


Array. The comment data


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


  • See: get_comment()


Since 0.71 Introduced.
Deprecated Since 2.7.0 Use get_comment()

Code of get_commentdata() WP 5.7.1

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);