How to remove URL field from comment form in wordpress

remove URL field from comment form in wordpress

WordPress websites and blogs are frequent targets of spam comments. Notice that these spammers always do not use their real name and leave a backlink to a site, which in most cases may not be related to your website. To effectively stop the link spammers it is better to remove the “Website” or “URL” field from the WordPress comment section.

With the comment_form_default_fields filter (See codex here), it’s just a matter of a couple line of codes. Put this in your functions.php.

Now check your comment form and the the URL field should have been removed.

before-after-remove-url-field-comment

Save

Author: Leo

My name is Leo who’s behind this blog. I’ve been working with wordpress since 2010. I’ll write about themes, plugins, tutorials and all about wordpress here. Hope you find it useful!

Leave a Reply

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