Warning: This function has been deprecated. bbp_make_clickable() instead.

bbp_find_mentions_pattern()

Set the pattern used for matching usernames for mentions.


Description Description

Moved into its own function to allow filtering of the regex pattern anywhere mentions might be used.


Return Return

(string) Pattern to match usernames with


Top ↑

Source Source

File: includes/core/functions.php

function bbp_find_mentions_pattern() {

	// Filter & return
	return apply_filters( 'bbp_find_mentions_pattern', '/[@]+([A-Za-z0-9-_\.@]+)\b/' );
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.6.0 bbp_make_clickable()
2.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.