This function has been deprecated. bbp_make_clickable() instead.
bbp_find_mentions_pattern()
Set the pattern used for matching usernames for mentions.
Description
Moved into its own function to allow filtering of the regex pattern anywhere mentions might be used.
Return
(string) Pattern to match usernames with
Source
File: bp-forums/core/functions.php
function bbp_find_mentions_pattern() { return apply_filters( 'bbp_find_mentions_pattern', '/[@]+([A-Za-z0-9-_\.@]+)\b/' ); }
Changelog
Version | Description |
---|---|
2.6.0 | bbp_make_clickable() |
bbPress (r4997) | 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.