bbp_make_mentions_clickable( string $text = '' )

Make mentions clickable in content areas

Description

See also

Parameters

$text

(string) (Optional)

Default value: ''

Return

(string)

Source

File: bp-forums/common/formatting.php

function bbp_make_mentions_clickable( $text = '' ) {
	return preg_replace_callback( '#([\s>])@([0-9a-zA-Z-_]+)#i', 'bbp_make_mentions_clickable_callback', $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.