首页 WordPress函数大全 comments_open()

comments_open()

2020-05-01 / 5475阅 / 悠然

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

comments_open( int|WP_Post $post_id = null )

Determines whether the current post is open for comments.

描述

For more information> Conditional Tags article in the Theme Developer Handbook.

参数

$post_id

(int|WP_Post)
(Optional)
Post ID or WP_Post object. Default current post.

Default value: null

返回

(bool) True if the comments are open.

大家谈论
    我的见解