WC_Order::maybe_set_user_billing_email()

Maybe set empty billing email to that of the user who owns the order.


Description Description


Source Source

File: includes/class-wc-order.php

	protected function maybe_set_user_billing_email() {
		$user = $this->get_user();
		if ( ! $this->get_billing_email() && $user ) {
			try {
				$this->set_billing_email( $user->user_email );
			} catch ( WC_Data_Exception $e ) {
				unset( $e );
			}
		}
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.