Clanbite

clanbite_normalize_country_code( string $code ): string

Normalize a stored country code for flag file lookup.

Parameters

$code (string) Required

Raw code from post meta or user meta.

Returns

string Uppercase letters, digits, and hyphens only (e.g. GB, GB-ENG).

Defined in inc/functions-country-flags.php