WordPress at Your Fingertips
function is not described

WC_Customer::set_billing_email() public WC 1.0

Set billing_email.

{} It's a method of the class: WC_Customer{}

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_Customer::set_billing_email() WC 5.9.0

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