WordPress at Your Fingertips
function is not described

wc_restore_locale() WC 3.1.0

Switch WooCommerce language to original.

No Hooks.

Return

null. Nothing.

Usage

wc_restore_locale();

Changelog

Since 3.1.0 Introduced.

Code of wc_restore_locale() WC 5.8.0

function wc_restore_locale() {
	if ( function_exists( 'restore_previous_locale' ) ) {
		restore_previous_locale();

		// Remove filter.
		remove_filter( 'plugin_locale', 'get_locale' );

		// Init WC locale.
		WC()->load_plugin_textdomain();
	}
}