Retrieve an array of comment data about comment $comment_id.
$comment_idintrequired
$no_cacheintrequired
$include_unapprovedbooloptional
Default:false
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);
}
| Version | Description |
|---|---|
| 2.7.0 | Use get_comment() |
| 0.71 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/get_commentdata