DISCLAIMER: this post is older than one year and may not be up to date with latest WordPress version.

By default, WordPress automatically turns urls left in the comment form into links. This can be useful, but as there’s lots of spammers on the internet, you might want to remove this feature.

To remove automatic linking of urls in comments, simply open your functions.php file and paste the following:

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

That’s all! Once saved, you can say bye bye to spammy links in comments.

This recipe has been initially published on CatsWhoCode. Don’t forget to read CWC’s list of 10 new WordPress hacks!



  1. It worked for me! Thank you very much.

  2. It worked for me too!
    Thank you very much.

  3. I could’nt find where to put the code, but I found an other solution :

    Open the file function.php, find the function twentyten_comment() and replace
    sprintf( ‘%s‘, get_comment_author_link() ) );
    sprintf( ‘%s‘, get_comment_author() ) );

    o/ Yeah !

  4. This doesn’t work for me

  5. Looks to be an Interesting options

Leave a Reply to Srinivas Venkataraman Cancel

Your email address will not be published. Required fields are marked *