CatalogVisibility.php
4 weeks ago
DefaultCustomerAddress.php
2 months ago
FeaturePluginCompatibility.php
4 weeks ago
OrderInternalStatus.php
4 weeks ago
OrderItemType.php
2 months ago
OrderStatus.php
4 weeks ago
PaymentGatewayFeature.php
7 months ago
ProductStatus.php
4 weeks ago
ProductStockStatus.php
4 weeks ago
ProductTaxStatus.php
1 year ago
ProductType.php
4 weeks ago
TaxBasedOn.php
2 months ago
DefaultCustomerAddress.php
41 lines
| 1 | <?php |
| 2 | |
| 3 | declare( strict_types = 1 ); |
| 4 | |
| 5 | namespace Automattic\WooCommerce\Enums; |
| 6 | |
| 7 | /** |
| 8 | * Enum class for the possible values of the 'woocommerce_default_customer_address' option. |
| 9 | * |
| 10 | * @since 10.8.0 |
| 11 | */ |
| 12 | final class DefaultCustomerAddress { |
| 13 | /** |
| 14 | * No default location. |
| 15 | * |
| 16 | * @var string |
| 17 | */ |
| 18 | public const NO_DEFAULT = ''; |
| 19 | |
| 20 | /** |
| 21 | * Use the shop's base country/region as the default location. |
| 22 | * |
| 23 | * @var string |
| 24 | */ |
| 25 | public const BASE = 'base'; |
| 26 | |
| 27 | /** |
| 28 | * Geolocate the customer's location. |
| 29 | * |
| 30 | * @var string |
| 31 | */ |
| 32 | public const GEOLOCATION = 'geolocation'; |
| 33 | |
| 34 | /** |
| 35 | * Geolocate the customer's location with page caching support (via AJAX). |
| 36 | * |
| 37 | * @var string |
| 38 | */ |
| 39 | public const GEOLOCATION_AJAX = 'geolocation_ajax'; |
| 40 | } |
| 41 |