Clanbite Avatars

apply_filters( 'clanbite_country_flag_img_html', string $img, array $context )

Filter the default flag <img> HTML after it is built.

Filter PHP

Parameters

$img (string)

Full img element string.

$context (array)

Same as clanbite_country_flag_html.

Example

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

Defined in inc/functions-country-flags.php