How to disable links or hyperlinks in WordPress comment
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.
# 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.