get_commentdata()

最后更新于:2021-11-26 07:53:20

get_commentdata( int$comment_ID, int$no_cache, bool$include_unapproved=false)

Retrieve an array of comment data about comment $comment_ID.

参数

$comment_ID

(int) (Required) The ID of the comment

$no_cache

(int) (Required) Whether to use the cache (cast to bool)

$include_unapproved

(bool) (Optional) Whether to include unapproved comments

Default value: false

响应

(array) The comment data

源文件

文件: gc-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);
}