Created
December 1, 2019 09:36
-
-
Save norilog4/113f1f110e729bc4cd05e49cba03905f to your computer and use it in GitHub Desktop.
コメント欄「メールアドレス」と「サイト」を消すソースコード
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function my_comment_form_remove($arg) { | |
$arg['email'] = ''; | |
$arg['url'] = ''; | |
return $arg; | |
} | |
add_filter('comment_form_default_fields', 'my_comment_form_remove'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
⬇️このソースコードをを紹介しているブログはこちら
https://noripon.blog/2019/12/02/how-to-customize-wordpress-comment-form/