Clanbite Since 1.5.0

clanbite_get_message_template( string $key ): string

The wording a message uses: the site owner's version, or the default.

The result still contains {placeholder} tokens; use clanbite_get_message() to fill them in. Use this when the values are only known later, for example to hand the template to JavaScript.

Parameters

$key (string) Required

Message key.

Returns

string Template, or an empty string for an unregistered key.

Defined in inc/messages.php

Changelog

VersionDescription
1.5.0Introduced.