How to Remove URL Field in WordPress Comment Form?

You may want to remove the URL field in the WordPress comments form due to the spammers who are using it to drop shady links, or readers feel compelled to fill it with garbage.  Add the following code in your functions.php file.

function remove_url_fields($fields) {
unset($fields['url']); // Removes URL Field
return $fields;
/** Add Filter Hook */
add_filter('comment_form_default_fields', 'remove_url_fields');


I hope you like this post, Please feel free to comment below, suggestion and problems!

(Visited 7 times, 1 visits today)
Chandra Kumar

Hello World, I am Chandra Kumar from New Delhi, India. I am professionally developer, programmer and blogger. I am the founder of

0 Comment

Leave a Comment

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