Home » Wordpress » How to remove the url field from WordPress comment form

Paste the code below into your functions.php file of wordpress theme. Once saved, the url field will be removed from your comment form in wordpress.

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

Array ( [0] => Wordpress )