Notifications
Clear all

Limited Support

Our support team is currently on holiday from December 25, 2025 to January 7, 2026, and replies may be delayed during this period.

We appreciate your patience and understanding while our team is away. Thank you for being part of the wpForo community!

Merry Christmas and Happy Holidays! 🎄

[Solved] How to disable clickable links in comments (wpforo-auto-embeded-link)

3 Posts
2 Users
1 Reactions
1,165 Views
Posts: 2
 Olli
Topic starter
(@olli)
New Member
Joined: 1 year ago

Hi! 

Is there a way to disable the the auto-linking of URLs in comments? I found out, that every link within a comment automatically gets the class "wpforo-auto-embeded-link" which seems to being set by the function "wpforo_content_filter" and there this specific code within the functions.php:

if( apply_filters( 'wpforo_auto_embed_link', true, $post ) ) {
		$content = preg_replace(
			'#([^\'\"]|^)(https?://[^\s\'\"<>\[\]]+)([^\'\"]|$)#iu',
			'$1 <a class="wpforo-auto-embeded-link" href="$2" target="_blank">$2</a> $3',
			(string) $content
		);
	}

I couldn't find an option to disable this functionality but would really like to do so.

Does anyony have any hints on this to me?

Kind regards

Olli


2 Replies
Sofy
Posts: 5637
 Sofy
Admin
(@sofy)
Support Team
Joined: 8 years ago

Hi,

You can use the hook-code below:

add_filter( 'wpforo_auto_embed_link', '__return_false' );

Here is a helpful article: https://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/


Reply
Posts: 2
 Olli
Topic starter
(@olli)
New Member
Joined: 1 year ago

Awesome, thanks for the quick response and help!


Reply