You're here: Home » WordPress » Disable Clickable Links in Comments

Disable Clickable Links in Comments

On Aug 26, 2011 under WordPress

In WordPress, the urls in comments automatically turn into links by default. Bloggers like this feature in general, but when the blog starts receiving lots of spam comments there comes a need to disable automatic linking of urls in comments. This controls spam to some extent.

Paste the below code in your theme’s functions.php file. Save changes. No more spam links in comments.

remove_filter('comment_text', 'make_clickable', 9);

Comments on this entry (3 comments)

Did you like this post? You can share your opinion with us! Simply click here.

  1. Ganesan K says:

    Thanks for sharing a nice info for wordpress users

  2. kamal says:

    i want to know u that, what plugins or coding u have used to show related post with news later box????? please give me the tutes addrss or plugins. i beg u please please please
    kamal recently posted..১০১টা কাজের সাইট; একবার দেখে নিজের প্রয়োজনেরটা বুকমার্ক করে রাখুন।

Leave a Reply

CommentLuv badge