Automattic\WooCommerce\Admin\Overrides

Order::get_report_customer_id()publicWC 1.0

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

Метод класса: Order{}

Хуков нет.

Возвращает

int.

Использование

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

Код Order::get_report_customer_id() 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;
}