# Stop Turning URLs in Comments Into Links

> Keeps web addresses typed in comments as plain text, so spam links are not clickable.

- Type: PHP
- Runs: Run everywhere
- Category: [Comments](https://wpide.com/library/category/comments/)
- Tags: comments, spam, links
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/comment-urls-not-clickable/

## Code

```php
add_action( 'init', function () {
    remove_filter( 'comment_text', 'make_clickable', 9 );
} );
```

## Notes

Links written as HTML anchors are not affected; use the "Strip HTML from comments" snippet for those.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Stop Turning URLs in Comments Into Links" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
