formcierge_country_list
Filter

Since v1.0.0

Modify the list of countries available in the Country field type. Use to restrict options, reorder, or add custom territories.

Parameters
$countries array Associative array of ISO 3166-1 alpha-2 code => country name pairs.
Defined in
includes/Fields/CountryField.php
add_filter( 'formcierge_country_list', function ( $countries ) {
    return array_intersect_key( $countries, array_flip( ['US', 'GB', 'CA'] ) );
} );