Clanbite Social Kit Since 1.6.0

mentions_to_names( string $text ): string

Replace @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) Required

Plain text.

Returns

string

Defined in inc/Social/Mentions.php

Changelog

VersionDescription
1.6.0Introduced.