Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Set the default country code to Nigeria for Caldera Forms
<?php // do not copy this line
add_filter( 'caldera_forms_phone_js_options', function( $options){
//Use ISO_3166-1_alpha-2 formatted country code
$options[ 'initialCountry' ] = 'NG';
return $options;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.