Clanbite Social Kit Since 1.6.0
mentions_to_names( string $text ): stringReplace @username in plain text with the member's display name (teams and groups with their name), as the feed shows them.
Used for text that cannot hold links, such as notification lines. Mentions that do not resolve stay as typed.
public static
Class: Kernowdev\ClanbiteSocialKit\Social\Mentions
Parameters
$text(string) RequiredPlain text.
Returns
string
Defined in inc/Social/Mentions.php
Changelog
| Version | Description |
|---|---|
| 1.6.0 | Introduced. |