WC_Email::setup_locale()publicWC 1.0

Set the locale to the store locale for customer emails to make sure emails are in the store language.

{} Это метод класса: WC_Email{}

Хуки из метода

Возвращает

null. Ничего.

Использование

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

Код WC_Email::setup_locale() WC 6.6.1

public function setup_locale() {
	if ( $this->is_customer_email() && apply_filters( 'woocommerce_email_setup_locale', true ) ) {
		wc_switch_to_site_locale();
	}
}