Skip to content

Instantly share code, notes, and snippets.

@norilog4
Created December 1, 2019 09:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save norilog4/113f1f110e729bc4cd05e49cba03905f to your computer and use it in GitHub Desktop.
Save norilog4/113f1f110e729bc4cd05e49cba03905f to your computer and use it in GitHub Desktop.
コメント欄「メールアドレス」と「サイト」を消すソースコード
function my_comment_form_remove($arg) {
$arg['email'] = '';
$arg['url'] = '';
return $arg;
}
add_filter('comment_form_default_fields', 'my_comment_form_remove');
@norilog4
Copy link
Author

norilog4 commented Mar 5, 2020

⬇️このソースコードをを紹介しているブログはこちら
https://noripon.blog/2019/12/02/how-to-customize-wordpress-comment-form/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment