Clanbite Since 1.5.0
clanbite_format_message( string $template, array $vars ): stringReplace {placeholder} tokens in a template.
Only tokens that have a value in $vars are replaced; anything else is left as written, so a typo stays visible.
Parameters
$template(string) RequiredWording with
{token}placeholders.$vars(array<string, scalar>) RequiredToken => value (plain text).
Returns
string
Defined in inc/messages.php
Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |