Created
July 19, 2016 05:03
-
-
Save jennimckinnon/a1aa3ed8c804c59a73794a0ed43bdce9 to your computer and use it in GitHub Desktop.
Removing the URL field in WordPress native comments by adding this code to your theme's functions PHP file.
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
add_filter('comment_form_default_fields', 'unset_url_field'); | |
function unset_url_field($fields){if(isset($fields['url']))unset($fields['url']); | |
return $fields; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment