WC_Order::set_billing_email()publicWC 1.0

Set billing email.

Method of the class: WC_Order{}

No Hooks.

Return

null. Nothing (null).

Usage

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

WC_Order::set_billing_email() code WC 8.7.0

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