首页 WordPress函数大全 get_comments_number_text()

get_comments_number_text()

2020-05-01 / 2304阅 / 悠然

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

get_comments_number_text( 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.

返回

(string) Language string for the number of comments a post has.

大家谈论
    我的见解