apply_filters( 'clanbite_country_flag_asset_slug', string $slug, string $normalized_code, array<string, mixed> $context )Filters the file slug used to find the bundled SVG flag for a country.
Filter PHP
Parameters
$slug(string)Lowercased file slug.
$normalized_code(string)Normalized country code.
$context(array<string, mixed>)Rendering context.
Example
add_filter( 'clanbite_country_flag_asset_slug', function ( $slug, $normalized_code, $context ) {
// Change $slug here.
return $slug;
}, 10, 3 );Defined in inc/functions-country-flags.php
Changelog
| Version | Description |
|---|---|
| 1.3.0 | Updated. |