apply_filters( 'clanbite_message_template', string $template, string $key, bool $is_default )Filters a message's wording before its placeholders are filled in.
Filter PHP
Parameters
$template(string)Wording: the site owner's version, or the default.
$key(string)Message key, for example
team_invite.title.$is_default(bool)Whether
$templateis the registered default (no custom wording saved).
Example
add_filter( 'clanbite_message_template', function ( $template, $key, $is_default ) {
// Change $template here.
return $template;
}, 10, 3 );Defined in inc/messages.php
Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |