Uses
Uses | Description |
---|---|
wp-includes/functions.php: _deprecated_function() | Mark a function as deprecated and inform when it has been used. |
wp-includes/comment.php: get_comment() | Retrieves comment data given a comment ID or comment object. |
This function has been deprecated. Use get_comment() instead.
Retrieve an array of comment data about comment $comment_ID.
(int) (Required) The ID of the comment
(int) (Required) Whether to use the cache (cast to bool)
(bool) (Optional) Whether to include unapproved comments
Default value: false
(array) The comment data
File: wp-includes/deprecated.php
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–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/get_commentdata