get_commentdata()
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.
Return
Array
. The comment data
Usage
get_commentdata( $comment_id, $no_cache, $include_unapproved );
- $comment_id(int) (required)
- The ID of the comment
- $no_cache(int)
- Whether to use the cache (cast to bool)
- $include_unapproved(true|false)
- Whether to include unapproved comments
Default: false
Notes
- See: get_comment()
Changelog
Since 0.71 | Introduced. |
Deprecated since 2.7.0 | Use get_comment() |
get_commentdata() get commentdata code WP 6.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); }