Remove website field from wordpress comment form

As website URL field is not mandatory but many times spammer use it to get backlinks to their website that results tons of garbage and spam comment. To get rid of spammer simply remove website field from comment form. To remove website field edit functions.php file in your WordPress theme folder and add following code

function remove_comment_website_url($fields) { 
    unset($fields['url']);
    return $fields;
}
add_filter('comment_form_default_fields','remove_comment_website_url');

Liked It? Get Free updates in your Email

Delivered by feedburner

Leave a Reply

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