WC_Email::restore_locale()publicWC 1.0

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

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

Возвращает

null. Ничего.

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

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

Код WC_Email::restore_locale() WC 6.9.1

public function restore_locale() {

	/**
	 * Filter the ability to restore email locale.
	 *
	 * @since 6.8.0
	 *
	 * @param bool $default_value The default returned value.
	 * @param WC_Email $this The WC_Email object.
	 */
	$restore_email_locale = apply_filters( 'woocommerce_allow_restoring_email_locale', true, $this );

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