woocommerce_customer_default_location

woocommerce_customer_default_location

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_customer_default_location') is found 1 times:

  • /includes/wc-core-functions.php line 1389
    		 * @since 2.3.0
    		 * @param string $default_location_string The default location.
    		 * @return string
    		 */
    		apply_filters( 'woocommerce_customer_default_location', $default_location_string ?? '' )
    	);
    
    	// Ensure defaults are valid.
    	$allowed_countries = WC()->countries->get_allowed_countries();
    
    	if ( ! in_array( $default_location['country'], array_keys( $allowed_countries ), true ) ) {