Notifications
Clear all

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

1 Posts
1 Users
0 Reactions
51 Views
Posts: 1
 Olli
Topic starter
(@olli)
New Member
Joined: 2 days 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