WooCommerce Code Reference

DefaultCustomerAddress
in package

Enum class for the possible values of the 'woocommerce_default_customer_address' option.

Tags
since
10.8.0

Table of Contents

BASE  = 'base'
Use the shop's base country/region as the default location.
GEOLOCATION  = 'geolocation'
Geolocate the customer's location.
GEOLOCATION_AJAX  = 'geolocation_ajax'
Geolocate the customer's location with page caching support (via AJAX).
NO_DEFAULT  = ''
No default location.

Constants

GEOLOCATION_AJAX

Geolocate the customer's location with page caching support (via AJAX).

public string GEOLOCATION_AJAX = 'geolocation_ajax'