Php 删除注释表单的注释\ u字段
我想删除注释表单的默认Php 删除注释表单的注释\ u字段,php,wordpress,Php,Wordpress,我想删除注释表单的默认comment\u字段,该字段是必填字段。 我尝试了很多方法,但都没能解决这个问题。如果此字段未设置,则无法发布注释错误显示 先写评论 有什么帮助吗?请尝试下面的代码 add_action('init', 'remove_comment_support', 100); function remove_comment_support() { remove_post_type_support( 'page', 'comments' ); remove_pos
comment\u字段
,该字段是必填字段。
我尝试了很多方法,但都没能解决这个问题。如果此字段未设置,则无法发布注释错误显示
先写评论
有什么帮助吗?请尝试下面的代码
add_action('init', 'remove_comment_support', 100);
function remove_comment_support() {
remove_post_type_support( 'page', 'comments' );
remove_post_type_support( 'post', 'comments' );
}
请按照此步骤进行设置