是否有评论循环。
原型
have_comments()
返回值
(bool)
源文件
路径:wp-includes/query.php
<?php
...
function have_comments() {
global $wp_query;
return $wp_query->have_comments();
}
...
?>
其他
英文文档:https://developer.wordpress.org/reference/functions/have_comments/