comments_number()
最后更新于:2021-11-25 20:38:02
comments_number( string|false$zero=false, string|false$one=false, string|false$more=false, int|GC_Post$post_id)Displays the language string for the number of comments the current post has.
参数
- $zero
-
(string|false) (Optional) Text for no comments.
Default value: false
- $one
-
(string|false) (Optional) Text for one comment.
Default value: false
- $more
-
(string|false) (Optional) Text for more than one comment.
Default value: false
- $post_id
-
(int|GC_Post) (Optional) Post ID or GC_Post object. Default is the global
$post
.
源文件
文件: gc-includes/comment-template.php
function comments_number( $zero = false, $one = false, $more = false, $post_id = 0 ) {
echo get_comments_number_text( $zero, $one, $more, $post_id );
}