wc_get_base_location()
Get the store's base location.
Hooks from the function
Returns
Array.
Usage
wc_get_base_location();
Changelog
| Since 2.3.0 | Introduced. |
wc_get_base_location() wc get base location code WC 10.7.0
function wc_get_base_location() {
$default = apply_filters( 'woocommerce_get_base_location', get_option( 'woocommerce_default_country', 'US:CA' ) );
return wc_format_country_state_string( $default );
}