Automattic\WooCommerce\Admin\API

DataCountries::get_locales()publicWC 1.0

Get country fields.

Method of the class: DataCountries{}

No Hooks.

Return

Array.

Usage

$DataCountries = new DataCountries();
$DataCountries->get_locales();

DataCountries::get_locales() code WC 9.3.3

public function get_locales() {
	$locales = WC()->countries->get_country_locale();
	return rest_ensure_response( $locales );
}