woocommerce_email_restore_locale

woocommerce_email_restore_locale

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_email_restore_locale') is found 1 times:

  • /includes/emails/class-wc-email.php line 366
    		 * @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();
    		}
    	}
    
    	/**
    	 * Get email subject.