A WordPress-centric search engine for devs and theme authors



get_commentdata ›

Since0.71
Deprecated2.7.0
get_commentdata ( $comment_ID, $no_cache = 0, $include_unapproved = false )
Parameters: (3)
  • (int) $comment_ID The ID of the comment
    Required: Yes
  • (int) $no_cache Whether to use the cache (cast to bool)
    Required: No
    Default:
  • (bool) $include_unapproved Whether to include unapproved comments
    Required: No
    Default: false
See:
Returns:
  • (array) The comment data
Defined at:
Codex:

Retrieve an array of comment data about comment $comment_ID.



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