-1
我想删除是必填字段的评论形式的默认comment_field
。 我尝试了很多方法,但无法取消设置此字段。如果此字段未设置无法发表评论错误显示删除评论形式的comment_field
首先写评论
任何帮助吗?
我想删除是必填字段的评论形式的默认comment_field
。 我尝试了很多方法,但无法取消设置此字段。如果此字段未设置无法发表评论错误显示删除评论形式的comment_field
首先写评论
任何帮助吗?
试试下面的代码
add_action('init', 'remove_comment_support', 100);
function remove_comment_support() {
remove_post_type_support('page', 'comments');
remove_post_type_support('post', 'comments');
}
根据本link.
执行设置