wc_get_base_location()WC 2.3.0

Get the store's base location.

Hooks from the function

Return

Array.

Usage

wc_get_base_location();

Changelog

Since 2.3.0 Introduced.

wc_get_base_location() code WC 8.6.1

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 );
}