首页 WordPress函数大全 get_commentdata()

get_commentdata()

2020-05-01 / 4925阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

Warning: This function has been deprecated. Use get_comment() instead.

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

Retrieve an array of comment data about comment $comment_ID.

描述

See also See also

  • get_comment()

Top ↑

参数

$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

大家谈论
    我的见解