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
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/' ); }
Changelog Changelog
Version | Description |
---|---|
2.6.0 | bbp_make_clickable() |
2.4.0 | Introduced. |