Categories
WordPress

WordPress Comment Form – Remove Website Field

Are you getting comment spammed by link building bots? Pull off the ‘website’ field from the form by adding this to your functions.php file.

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

Leave a Reply

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