wc_get_base_location

Get the store's base location.

Description

(array) wc_get_base_location(); 

Returns (array)


Usage

  1. if ( !function_exists( 'wc_get_base_location' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-core-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wc_get_base_location(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/wc-core-functions.php  
  1. function wc_get_base_location() { 
  2. $default = apply_filters( 'woocommerce_get_base_location', get_option( 'woocommerce_default_country' ) ); 
  3.  
  4. return wc_format_country_state_string( $default );