Clanbite Avatars

apply_filters( 'clanbite_country_flag_html', string $html, array $context )

Replace default flag markup entirely. Return non-empty HTML to skip the default <img>.

Filter PHP

Parameters

$html (string)

Empty string by default.

$context (array)

Keys: code, alt, plus passthrough from the caller.

Example

add_filter( 'clanbite_country_flag_html', function ( $html, $context ) {
	// Change $html here.
	return $html;
}, 10, 2 );

Defined in inc/functions-country-flags.php