Clanbite Avatars

apply_filters( 'clanbite_country_display_html', string $inner, array<string, mixed> $attributes, string $code, string $label, string $entity, string $block_name, \WP_Block|null $block )

Filter full inner HTML for country blocks (flag + text layout).

Filter PHP

Parameters

$inner (string)

Built HTML.

$attributes (array<string, mixed>)

Block attributes.

$code (string)

Raw storage code.

$label (string)

Resolved display label.

$entity (string)

team or player.

$block_name (string)

Block name.

$block (\WP_Block|null)

Block instance.

Example

add_filter( 'clanbite_country_display_html', function ( $inner, $attributes, $code, $label, $entity, $block_name, $block ) {
	// Change $inner here.
	return $inner;
}, 10, 7 );

Defined in inc/functions-country-flags.php