How to remove URL from WordPress Comments

 

How to remove URL from WordPress Comments

It’s very common question many people asking , How can I remove the URL input filed from comment area  That sure will reduce spammer from visiting your site and add many hundreds of spammy comments also may cause you problem with Google SEO , Today we will learn  how to remove URL input field from WordPress Comments.

it’s very simple way , No need for plugins just a few of codes .

Remove URL Input Field

Go to Appearance >> Editor >> Functions.php and add the following code to it.

add_filter(‘comment_form_default_fields’, ‘url_filtered’);
function url_filtered($fields)
{
if(isset($fields[‘url’]))
unset($fields[‘url’]);
return $fields;
}
Now this what you will see in comment area

WordPress-Comments-After-Remove-URL

WordPress-Comments-After-Remove-URL
Finally, your Comments should appear without any URL/Website option and comments will be purely genuine on your blog. 🙂