This function has been deprecated. Use get_comment() instead.
get_commentdata( int $comment_id, int $no_cache, bool $include_unapproved = false )
Retrieve an array of comment data about comment $comment_id.
Description
See also
Parameters
- $comment_id
-
(Required) The ID of the comment
- $no_cache
-
(Required) Whether to use the cache (cast to bool)
- $include_unapproved
-
(Optional) Whether to include unapproved comments
Default value: false
Return
(array) The comment data
Source
File: wp-includes/deprecated.php
function get_commentdata( $comment_ID, $no_cache = 0, $include_unapproved = false ) {
_deprecated_function( __FUNCTION__, 'WP-2.7.0', 'get_comment()' );
return get_comment($comment_ID, ARRAY_A);
}
Changelog
Version | Description |
---|---|
2.7.0 | Use get_comment() |
0.71 | Introduced. This function has been deprecated. Use get_comment() instead. |