Latest Tech and Tips

How to Disable Auto Linking of URLs in WordPress Comments

11

Did you understand that when an individual includes a simple message URL in their comments, WordPress immediately makes it clickable. Recently, one of our viewers asked us if it was feasible to disable auto-linking of message urls in WordPress comments? The response is YES. In this short article, we will certainly reveal you how to disable auto-linking of URLs in WordPress comments.

Why WordPress Autolinks Text URLs in Comments?

WordPress immediately transforms message URLs right into web links that makes it less complicated to go to the web link while regulating comments.

This auto-linking is not saved in your data source. WordPress makes URLs clickable when presenting them on display in admin location along with comments area listed below your write-ups.

Auto-linked clickable text URL in WordPress comments

Some of these comments are real where commenters really did not understand how to include a web link in comments. But lots of spam comments additionally include ordinary URLs pasted straight in the remark message.

Disabling Auto-Link in WordPress Comments

Simply include this solitary line of code in your motif’s functions.php data or in a site-specific plugin.

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

WordPress does not keep ordinary message URLs as web links in the data source. Instead it transforms them right into clickable web links on the fly. This code merely disables the filter that makes URLs clickable.

This makes ordinary message URLs non-clickable in admin location and also comments area listed below your articles. Removing this code will certainly re-enable the auto linking.

If you are including it to your motif’s functions.php data, after that upgrading your motif will certainly overwrite your features data.

Also maintain in mind that this code just services ordinary messageURLs If an individual determined to develop a web link by including the appropriate HTML tag, after that those web links will certainly look like they should.

If you desire to total turn off any type of HTML in comments, after that have a look at our tutorial on how to disable HTML in WordPress comments.

We wish this short article aided you disable auto linking of URLs in WordPress comments. You might additionally desire to see our checklist of 16 finest plugins to boost WordPress comments.

If you liked this short article, after that please subscribe to our YouTube Channel for WordPress video clip tutorials. You can additionally discover us on Twitter and also Facebook.