wpseek.com
WordPress开发者和主题制作者的搜索引擎



get_commentdata › WordPress Function

Since0.71
已弃用2.7.0
get_commentdata ( $comment_id, $no_cache = 0, $include_unapproved = false )
参数: (3)
  • (int) $comment_id The ID of the comment
    Required: Yes
  • (int) $no_cache Whether to use the cache (cast to bool)
    Required: No
    默认:
  • (bool) $include_unapproved Whether to include unapproved comments
    Required: No
    默认: false
查看:
返回:
  • (array) The comment data
定义在:
文档:

Retrieve an array of comment data about comment $comment_id.



源码

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