By: Prem Tiwari | Last Updated:
By default, WordPress gives you an option add comment section under the every post of your website. This comment section allows your site visitors to add their comments on your posts. Due to this features many spammers are posted many unwanted comments and spam links in your website to get the backlink.
If you want to remove these type of links fro your website, then there are two ways to handle these types of spammers. First, you can remove the website text box option from your comment form. A few days back I have written a tutorial, check out:
If you don’t want to remove the website text box from comment form, then go for the second option. Open functions.php file from your current activated theme folders and add the below code at the end of the file.
remove_filter('comment_text', 'make_clickable', 9);
Now all URLs posted in your comments will not be turned into actual links anymore…
Do you like & share this tutorial with your friends, and don’t forget to follow us on Facebook and Twitter to learn cool WordPress tutorials. Also subscribe my blog to get every future WordPress tips and tricks directly in you mailbox.
Prem Tiwari is the founder of FreeWebMentor.com and also a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies. View all posts by Prem Tiwari