OrderController::validate_allowed_country( string $country, array $allowed_countries )

Check all required address fields are set and return errors if not.


Description Description


Parameters Parameters

$country

(Required) Country code.

$allowed_countries

(Required) List of valid country codes.


Top ↑

Return Return

(boolean) True if valid.


Top ↑

Source Source

File: packages/woocommerce-blocks/src/StoreApi/Utilities/OrderController.php


			


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.