WordPress at Your Fingertips
function is not described

WC_Email::restore_locale() public WC 1.0

Restore the locale to the default locale. Use after finished with setup_locale.

{} It's a method of the class: WC_Email{}

Hooks from the method

Return

null. Nothing.

Usage

$WC_Email = new WC_Email();
$WC_Email->restore_locale();

Code of WC_Email::restore_locale() WC 5.9.0

public function restore_locale() {
	if ( $this->is_customer_email() && apply_filters( 'woocommerce_email_restore_locale', true ) ) {
		wc_restore_locale();
	}
}