apply_filters( 'clanbite_players_get_display_birthday', string $birthday, int $player_id )Allows filtering of the players display birthday, this can be bypassed by setting $suppress_filters param to true.
Filter PHP
Parameters
$birthday(string)Birthday (
Y-m-d, empty when unset).$player_id(int)Player (user) ID.
Example
add_filter( 'clanbite_players_get_display_birthday', function ( $birthday, $player_id ) {
// Change $birthday here.
return $birthday;
}, 10, 2 );Defined in inc/extensions/players/functions.php
Changelog
| Version | Description |
|---|---|
| 1.3.0 | Updated. |