Created
February 14, 2016 10:07
-
-
Save AntoscencoVladimir/4f172195b2905d1fd802 to your computer and use it in GitHub Desktop.
Disable field in 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
<?php | |
function remove_comment_fields($fields) { | |
unset($fields['url']); | |
return $fields; | |
} | |
add_filter('comment_form_default_fields', 'remove_comment_fields'); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment