How to remove the Website Field from Comment form

Today we will see How to remove the Website Field from Comment form. if we think properly their is no need for Website field in the comments form it is mostly used by Spammers to spam, and all of us hates our site to be spammed.

to this problem their is just a small solution just add the below line of code to functions.php :

/* Remove Websites Field from Comment form - */

function remove_website_field_wpden($fields)
  return $fields;

add_filter('comment_form_default_fields', 'remove_website_field_wpden');

Now you will not be able to see the Website field in the comment form. Thanks to Zee for the code.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>