Created
July 15, 2015 07:54
-
-
Save lmm214/ec5ce04d2c051cf58bac to your computer and use it in GitHub Desktop.
Remove Name and Email From Comment Form
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 wpb_alter_comment_form_fields($fields) { | |
unset($fields['author']); | |
unset($fields['email']); | |
unset($fields['url']); | |
return $fields; | |
} | |
add_filter('comment_form_default_fields', 'wpb_alter_comment_form_fields'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment