bbp_make_emails_clickable( string $text = '' )

Make emails clickable in content areas

Description

See also

Parameters

$text

(Optional)

Default value: ''

Return

(string)

Source

File: bp-forums/common/formatting.php

function bbp_make_emails_clickable( $text = '' ) {
	return preg_replace_callback( '#([\s>])([.0-9a-z_+-]+)@(([0-9a-z-]+\.)+[0-9a-z]{2,})#i', '_make_email_clickable_cb', $text );
}

Changelog

Changelog
Version Description
BuddyPress 2.6.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.