How to Remove Website URL Field from WordPress Comment Form

Do you want to remove website URL field from WordPress comment form? If your answer to this question is yes, then this blog post is for you.

Spam comments are a big issue for some blogging websites. The main motive for users to add spam comments on your website is the need to get backlinks by utilizing the website URL field in the WordPress comment form.

Since larger part of the spam is created by bots, you can without much of a stretch battle comment spam by utilizing free plugins and tools.

The trickier part is to deter spam comments submitted physically by people. These undesirable comments are presented by real humans and are many times off-subject and insignificant.

Remove Website URL Field from WordPress Comment Form
Remove Website URL Field from WordPress Comment Form

In this blog post, I will show you how to remove website URL field from WordPress comment form.

Remove Website URL Field from WordPress Comment Form

To be able to remove website URL field from WordPress comment form, I will show you two methods so that you decide which one of them would be best for your website needs.

Use a plugin

Use a custom code

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

Leave a Reply

Your email address will not be published.