Clanbite Since 1.5.0

clanbite_get_message( string $key, array $vars = array() ): string

Build a message: the site's wording with the placeholders filled in.

The result is plain text. Escape it for the place you print it, exactly as you would the __() string it replaces.

Parameters

$key (string) Required

Message key (see clanbite_register_message()).

$vars (array<string, scalar>) Optional

Token => value, for the placeholders the message declares.

Default: array()

Returns

string

Defined in inc/messages.php

Changelog

VersionDescription
1.5.0Introduced.