首页 WordPress函数大全 get_comments()

get_comments()

2020-05-01 / 4028阅 / 悠然

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

get_comments( string|array $args = '' )

Retrieve a list of comments.

描述

The comment list can be for the blog as a whole or for an individual post.

参数

$args

(string|array)
(Optional)
Array or string of arguments. See WP_Comment_Query::__construct() for information>Default value: ''

返回

(int|array) List of comments or number of found comments if $count argument is true.

大家谈论
    我的见解