apply_filters( 'rtcl_get_base_location', $location )
Filters default base location (Country, State) on checkout page.
Parameters: #
| Name | Type | Description |
| $location | array | Default country & state |
Usage: #
Add following code in child theme functions.php file to change default location on checkout page –
add_filter( 'rtcl_get_base_location', function ( $location ) {
$location['country'] = 'NZ';
$location['state'] = 'CT';
return $location;
}, 20 );
NB: Change country and state as your demand.