woocommerce_email_setup_locale

woocommerce_email_setup_locale

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_email_setup_locale') is found 1 times:

  • /includes/emails/class-wc-email.php line 375
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
         * @param WC_Email $this 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();
        }
    }
     
    /**
     * Restore the locale to the default locale. Use after finished with setup_locale.