woocommerce_get_base_location

woocommerce_get_base_location

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_get_base_location') is found 1 times:

  • /includes/wc-core-functions.php line 1316
    1312
    1313
    1314
    1315
    1316
    1317
    1318
    1319
    1320
    1321
    1322
    * @since 2.3.0
     * @return array
     */
    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 );
    }
     
    /**
     * Uses geolocation to get the customer country and state only if they are valid values.