Is it possible with a function to change the drop down to Unites States of America?
Hi,
You can follow the link below where I’ve provided a solution that is almost similar. However, you need to make a few modifications to the code. You can follow the same process and use the following modified code.
add_filter( 'gform_countries', 'modify_countries_list' );
function modify_countries_list( $countries ) {
$key = array_search( 'United States', $countries );
if ( $key !== false ) {
unset( $countries[ $key ] );
}
$countries[] = 'United States of America' ;
sort($countries);
return $countries;
}
Output:
Give it a try, and let me know how that goes!
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.