首页 WordPress函数大全 comments_number()

comments_number()

2020-05-01 / 3417阅 / 悠然

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

comments_number( string $zero = false, string $one = false, string $more = false, int|WP_Post $post_id )

Displays the language string for the number of comments the current post has.

描述

参数

$zero

(string)
(Optional)
Text for no comments.

Default value: false

$one

(string)
(Optional)
Text for>Default value: false

$more

(string)
(Optional)
Text for more than>Default value: false

$post_id

(int|WP_Post)
(Optional)
Post ID or WP_Post object. Default is the global $post.

大家谈论
    我的见解