get_commentdata( int $comment_id, int $no_cache, bool $include_unapproved = false ): array

This function has been deprecated. Use get_comment() instead.

Retrieve an array of comment data about comment $comment_id.

Description

See also

Parameters

$comment_idintrequired
The ID of the comment
$no_cacheintrequired
Whether to use the cache (cast to bool)
$include_unapprovedbooloptional
Whether to include unapproved comments

Default:false

Return

array The comment data

Source

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

Changelog

VersionDescription
2.7.0Use get_comment()
0.71Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.