wpseek.com
A WordPress-centric search engine for devs and theme authors



get_commentdata › WordPress Function

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