How to Remove Website URL Field from WordPress Comment Form?

Website owners remove website fields from the WordPress comment form to prevent automated bots and unauthorized users to post spam links on their WordPress website. This practice helps in retaining the SEO Juice of the website.

There are two options with which you can remove the website field from the WordPress comment form –

1. Using ‘comment_form_default_fields’ Filter

add_filter('comment_form_default_fields', 'maverick_remove_comment_website_field');

function maverick_remove_comment_website_field($fields)
    if (isset($fields['url']))
    return $fields;

2. Using ‘comment_form_field_url’ Filter

add_filter('comment_form_field_url', '__return_false');

Leave a Reply

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