Automattic\WooCommerce\Admin\Overrides

Order::get_report_customer_id()publicWC 1.0

Get the customer ID used for reports in the customer lookup table.

Method of the class: Order{}

No Hooks.

Return

Int.

Usage

$Order = new Order();
$Order->get_report_customer_id();

Order::get_report_customer_id() code WC 8.7.0

public function get_report_customer_id() {
	if ( is_null( $this->customer_id ) ) {
		$this->customer_id = CustomersDataStore::get_or_create_customer_from_order( $this );
	}

	return $this->customer_id;
}