woocommerce_get_base_location
Get the store's base location.
Usage
add_filter( 'woocommerce_get_base_location', 'wp_kama_woocommerce_get_base_location_filter' );
/**
* Function for `woocommerce_get_base_location` filter-hook.
*
* @param $option
*
* @return
*/
function wp_kama_woocommerce_get_base_location_filter( $option ){
// filter...
return $option;
}
- $option
- -
Changelog
| Since 2.3.0 | Introduced. |
Where the hook is called
woocommerce_get_base_location
woocommerce/includes/wc-core-functions.php 1148
$default = apply_filters( 'woocommerce_get_base_location', get_option( 'woocommerce_default_country', 'US:CA' ) );