Skip to content

Instantly share code, notes, and snippets.

@jennimckinnon
Created July 19, 2016 05:03
Show Gist options
  • Save jennimckinnon/a1aa3ed8c804c59a73794a0ed43bdce9 to your computer and use it in GitHub Desktop.
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.
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