WC_Order::set_billing_email()
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() WC Order::set billing email code WC 9.6.1
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 ) ); }