woocommerce_allow_switching_email_locale, true, $this
woocommerce_allow_switching_email_locale, true, $this
Appears in: woocommerce.11.0.0
Hook Type: filter
Displaying hooks found in version: woocommerce.11.0.0apply_filters('woocommerce_allow_switching_email_locale, true, $this') is found 1 times:
- /includes/emails/class-wc-email.php line 426
* * @param bool $default_value The default returned value. * @param WC_Email $email The WC_Email object. */ $switch_email_locale = apply_filters( 'woocommerce_allow_switching_email_locale', true, $this ); if ( $switch_email_locale && $this->is_customer_email() && apply_filters( 'woocommerce_email_setup_locale', true ) ) { wc_switch_to_site_locale(); } }