WC_Order::maybe_set_user_billing_email PHP Method

maybe_set_user_billing_email() protected method

Maybe set empty billing email to that of the user who owns the order.
    protected function maybe_set_user_billing_email()
    {
        if (!$this->get_billing_email() && ($user = $this->get_user())) {
            try {
                $this->set_billing_email($user->user_email);
            } catch (WC_Data_Exception $e) {
                unset($e);
            }
        }
    }
WC_Order