WC_Customer::set_billing_email()publicWC 1.0

Set billing_email.

Method of the class: WC_Customer{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Customer = new WC_Customer();
$WC_Customer->set_billing_email( $value );
$value(string) (required)
Billing email.

WC_Customer::set_billing_email() code WC 9.4.2

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 ) );
}