WordPress Snippets at WPcustoms

remove link from urls in comments

Urls written in the comment text automatically get hyperlinked to the URL. You can disable this with the filter make_clickable


/**
 * Snippet Name: remove link from urls in comments
 * Snippet URL: https://wpcustoms.net/snippets/remove-link-urls-comments/
 */
  remove_filter('comment_text', 'make_clickable', 9);