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