WC_Customer::set_billing_email( string $value )
Set billing_email.
Description Description
Parameters Parameters
- $value
-
(Required) Billing email.
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 ) ); }