Remove the URL field from the WordPress comment form

Here is a simple code snippet to remove the URL field from WordPress comment form.

Marking as spam all the comments that have very long URLs in the website field will help you tackle spammers. However, if you find that spam is getting out of control, you may want to consider removing the website URL field altogether.

If you implement the snippet below and configure your WordPress discussion settings so that any comment with a link is held for moderation; you can effectively stop all spam entirely.

Just add this next filter to your theme’s functions.php . Once saved, the URL field will should be removed from your comment form.

 

Leave a Reply

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