As your traffic grows you will receive lots of spamming comment, You can easily disable link or hyperlinks adding few codes or filter using plugins like Akismet. Spammers use to leave a link in comment box to drive traffic to their blog and to get SEO benefits. WordPress converts plain URL into links automatically. Add below code in WordPress file called function.php to disable links in comment. In this guide you will learn how to disable links or hyperlinks in WordPress comment.
# remove_filter( ‘comment_text’, ‘make_clickable’, 9 );
Login to the WordPress Dashboard. Click on Editor under Appearance.
Now, you are about to alter WordPress core file. Spammers will not able to drop a links and all the previous links will disable after implementing the code.
From the right side, click on functions.php. Add the code below <?php and click on Update file button.
That all, now your blog is free of spamming comments.
We hope this guide on how to disable links or hyperlinks in WordPress comment is helpful. You may also like to see the guide on how to create page jump links in WordPress. If you find this guide helpful, please share and follow us on facebook and twitter.