Remove website field from comment

Edward Ziadeh • 6 November 2019
Blog in group Wordpress
0 comments
0 likes

Editing the WordPress Files to remove the Website field from comments

  • open functions.php file and add code.

 

add_filter('comment_form_default_fields', 'website_remove');

function website_remove($fields)
{
if(isset($fields['url']))
unset($fields['url']);
return $fields;
}