Clanbite

clanbite_country_block_inner_html( array $attributes, string $code, string $label, string $entity, string $block_name, \WP_Block|null $block = null ): string

Build inner HTML for team/player country blocks (flag and/or label).

Parameters

$attributes (array<string, mixed>) Required

Block attributes: countryDisplay, flagFirst, showCode.

$code (string) Required

Raw country code from storage.

$label (string) Required

Human-readable country name.

$entity (string) Required

team or player.

$block_name (string) Required

Block name, e.g. clanbite/team-country.

$block (\WP_Block|null) Optional

Block instance.

Default: null

Returns

string HTML fragment (escaped); empty when nothing to show.

Defined in inc/functions-country-flags.php