Want to know what WordPress Theme a site is using? Check Out Now!

How to Disable URL Links in WordPress Comments?

Do you want to disable URL links in WordPress comments?

By default, WordPress automatically converts URLs into clickable links within WordPress comment text.

Disabling URL links in WordPress comments helps maintain comment readability and potential misuse of comment sections for spam or malicious purposes.

Additionally, bloggers often intentionally add links within comments to create backlinks and boost SEO. Disabling the links in comments also makes sure to control outbound links in comments to maintain the integrity and quality of your site’s content and SEO ranking.

Simply add the provided code snippet, and URLs in comments will no longer be clickable hyperlinks, offering a cleaner and more controlled commenting experience for your WordPress site.

/**
 * Disable URL Links in WordPress Comments
 */
remove_filter('comment_text', 'make_clickable', 9);

Leave a Reply

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