Search
 
SCRIPT & CODE EXAMPLE
 

PHP

Change initial country + add top countiries on Caldera forms

/**
 * Change default country on Caldera forms
 */
add_filter( 'caldera_forms_phone_js_options', function( $options){
	//Use ISO_3166-1_alpha-2 formatted country code
	$options[ 'initialCountry' ] = 'ZA';
	$options[ 'preferredCountries' ] = array( 'ZA', 'SWZ', 'LSO' );
	return $options;
});
Comment

PREVIOUS NEXT
Code Example
Php :: php base64 encode utf8 
Php :: Finding Vulnerable Urls 
Php :: command to run after exposing route symfony 
Php :: Downward half-Pyramid Pattern of Star 
Php :: laravel child relation get max value 
Php :: wordpress show notice only on plugin page 
Php :: How to hide Directory Browsing in WordPress from server? 
Php :: if data come from foreach loop and if there are same value then sum of this same value and pass it to variable in php 
Php :: List all controllers in codeigniter HMVC structure 
Php :: refresh database tables yii 1 
Php :: if Offset php 
Php :: Laravel efficient way to remove X records if there are duplicates 
Php :: wc php after login redirect page 
Php :: symfony check:requirements Fatal error: Using $this when not in object context in C:UsersAdmin.symfonycachecheck.php on line 778 exit status 255 
Php :: php set 404 page 
Php :: laravel get fetch api request body 
Php :: how to create a tryit editor 
Php :: laravel data type 
Php :: laravel seeder multiple column 
Php :: how to create php message 1 
Php :: unless blade laravel 
Php :: add method to laravel blade 
Java :: java: cannot access javax.naming.Referenceable class file for javax.naming.Referenceable not found 
Java :: java console text color 
Java :: read text file java to string 
Java :: onclick button in java android 
Java :: empty character in java 
Java :: java selenium new empty window 
Java :: spigot run task later 
Java :: recyclerview snaphelper callbacks android 
ADD CONTENT
Topic
Content
Source link
Name
7+6 =