apply_filters( 'clanbite_players_get_account_firstname', string $first_name, int $player_id )Allows filtering of the players account first name, this can be bypassed by setting $suppress_filters param to true.
Filter PHP
Parameters
$first_name(string)Account first name.
$player_id(int)Player (user) ID.
Example
add_filter( 'clanbite_players_get_account_firstname', function ( $first_name, $player_id ) {
// Change $first_name here.
return $first_name;
}, 10, 2 );Defined in inc/extensions/players/functions.php
Changelog
| Version | Description |
|---|---|
| 1.3.0 | Updated. |