Clanbite Players

apply_filters( 'clanbite_players_get_display_country', string $country, int $player_id, string $return_type )

Allows filtering of the players display country, this can be bypassed by setting $suppress_filters param to true.

Filter PHP

Parameters

$country (string)

Country name or code, per $return_type.

$player_id (int)

Player (user) ID.

$return_type (string)

What was requested: name or code.

Example

add_filter( 'clanbite_players_get_display_country', function ( $country, $player_id, $return_type ) {
	// Change $country here.
	return $country;
}, 10, 3 );

Defined in inc/extensions/players/functions.php

Changelog

VersionDescription
1.3.0Updated.