WC_Email::restore_locale
Restore the locale to the default locale. Use after finished with setup_locale.
Метод класса: WC_Email{}
Возвращает
null. Ничего (null).
Использование
$WC_Email = new WC_Email(); $WC_Email->restore_locale();
Код WC_Email::restore_locale() WC Email::restore locale WC 10.6.2
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 $email 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();
}
}