For those bloggers who just come to the blog to make soy sauce, and then leave a hyperlink to the website and leave, sometimes they feel helpless. It seems that deleting such comments will offend the other party, and I am not willing to delete them. In this case, I Remove the hyperlink from the URL in the comment and leave a plain text URL. The implementation is very simple. Just add a line of function code to functions.php.
How to remove hyperlinks from WordPress comment content URLs:
Log in to the blog backend and click the "Edit" option under the "Appearance" tab to enter the current theme editing interface.
Select the functions.php file for editing and add the following code between <?php and ?>
remove_filter('comment_text', 'make_clickable', 9);
After adding the code, the URL hyperlinks in the blog comment content section will appear in text format once the file is saved.
Reminder: Some people say that this method is invalid, but it is OK after testing on the blog. The demonstration can be viewed in the comments on the blog’s friendly link page.
Article source: Blog