woocommerce_get_base_location filter-hookWC 2.3.0

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

wc_get_base_location()
woocommerce_get_base_location
woocommerce/includes/wc-core-functions.php 1294
$default = apply_filters( 'woocommerce_get_base_location', get_option( 'woocommerce_default_country', 'US:CA' ) );

Where the hook is used in WooCommerce

Usage not found.