首页 WordPress函数大全 get_default_comment_status()

get_default_comment_status()

2020-05-01 / 4331阅 / 悠然

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

get_default_comment_status( string $post_type = 'post', string $comment_type = 'comment' )

Gets the default comment status for a post type.

描述

参数

$post_type

(string)
(Optional)
Post type.

Default value: 'post'

$comment_type

(string)
(Optional)
Comment type.

Default value: 'comment'

返回

(string) Expected return value is 'open' or 'closed'.

大家谈论
    我的见解