apply_filters( 'clanbite_message_definitions', array<string, array<string, mixed>> $definitions )Filters the registered messages (see clanbite_register_message() for the shape of each entry).
Core and every extension add their messages here, so a plugin can also change another plugin's default wording or remove a message from the Messages sub-tabs.
Filter PHP
Parameters
$definitions(array<string, array<string, mixed>>)Message key => definition.
Example
add_filter( 'clanbite_message_definitions', function ( $definitions ) {
// Change $definitions here.
return $definitions;
}, 10, 1 );Defined in inc/messages.php
Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |