woocommerce_customer_default_location filter-hookWC 1.0

Usage

add_filter( 'woocommerce_customer_default_location', 'wp_kama_woocommerce_customer_default_location_filter' );

/**
 * Function for `woocommerce_customer_default_location` filter-hook.
 * 
 * @param  $default_location 
 *
 * @return 
 */
function wp_kama_woocommerce_customer_default_location_filter( $default_location ){

	// filter...
	return $default_location;
}
$default_location
-

Where the hook is called

wc_get_customer_default_location()
woocommerce_customer_default_location
woocommerce/includes/wc-core-functions.php 1311
$location                = wc_format_country_state_string( apply_filters( 'woocommerce_customer_default_location', $default_location ) );

Where the hook is used in WooCommerce

Usage not found.