-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.
執行設置