wc_get_base_location()

Get the store’s base location.


Description Description


Return Return

(array)


Top ↑

Source Source

File: includes/wc-core-functions.php

1272
1273
1274
1275
1276
function wc_get_base_location() {
    $default = apply_filters( 'woocommerce_get_base_location', get_option( 'woocommerce_default_country' ) );
 
    return wc_format_country_state_string( $default );
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.3.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.