Current Path : /storage/v11800/romasitenew/public_html/wp-content/plugins/simpl-checkout-woocommerce/includes/utils/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/romasitenew/public_html/wp-content/plugins/simpl-checkout-woocommerce/includes/utils/load.php |
<?php
class SimplUtil
{
static function state_code_for_state($state_name)
{
$supported_states = array();
$states = WC()->countries->get_states("IN");
foreach ($states as $s_code => $s_name) {
$supported_states[$s_name] = $s_code;
}
return $supported_states[$state_name];
}
static function country_code_for_country($country_name)
{
$supported_countries = array("india" => "IN");
return $supported_countries[strtolower($country_name)];
}
}