apply_filters( 'clanbite_message', string $message, string $key, array<string, scalar> $vars, string $template )Filters a finished message.
Runs on every message, so check $key before changing anything.
Filter PHP
Parameters
$message(string)The message with placeholders filled in.
$key(string)Message key.
$vars(array<string, scalar>)The values that were substituted.
$template(string)The wording before substitution.
Example
add_filter( 'clanbite_message', function ( $message, $key, $vars, $template ) {
// Change $message here.
return $message;
}, 10, 4 );Defined in inc/messages.php
Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |