wc_importer_current_locale()WC 3.1.0

Importer current locale.

No Hooks.

Return

String.

Usage

wc_importer_current_locale();

Changelog

Since 3.1.0 Introduced.

wc_importer_current_locale() code WC 8.7.0

function wc_importer_current_locale() {
	$locale = get_locale();
	if ( function_exists( 'get_user_locale' ) ) {
		$locale = get_user_locale();
	}

	return $locale;
}