Skip to content

Instantly share code, notes, and snippets.

@TanvirAmi
Created November 24, 2015 15:28
Show Gist options
  • Save TanvirAmi/ce8bf09a77b63b6ed9f2 to your computer and use it in GitHub Desktop.
Save TanvirAmi/ce8bf09a77b63b6ed9f2 to your computer and use it in GitHub Desktop.
This function will remove the email and url field from wordpress comment form.
<?php
function remove_comment_fields($fields) {
unset($fields['email']);
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