How to Disable Links or Hyperlinks in WordPress Comment

Free WordPress Tutorials for the Beginners

how to disable comment links feature

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.

How to disable links or hyperlinks in WordPress comment

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.

function

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.

2 Responses

  1. Alexandre says:

    We have a user who is the editor, and he usually responds to comments often by linking to other articles on our site. We would like to be able to remove all third party links, and maintain links from our editor. How can we do that?

  2. webminto says:

    Hi Alexandre, If adding the above script in function.php is not working for you than install Comment link remove plugin and from the WP dashboard click on QC CLR settings and check the box “Remove HTML Link Tags in comments” and Save it.

Leave a Reply