WC_Customer::set_billing_email( string $value )

Set billing_email.


Description Description


Parameters Parameters

$value

(Required) Billing email.


Top ↑

Source Source

File: includes/class-wc-customer.php

	public function set_billing_email( $value ) {
		if ( $value && ! is_email( $value ) ) {
			$this->error( 'customer_invalid_billing_email', __( 'Invalid billing email address', 'woocommerce' ) );
		}
		$this->set_address_prop( 'email', 'billing', sanitize_email( $value ) );
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.