Automattic\WooCommerce\Admin\Overrides
Order::get_report_customer_id
Get the customer ID used for reports in the customer lookup table.
Method of the class: Order{}
No Hooks.
Returns
Int.
Usage
$Order = new Order(); $Order->get_report_customer_id();
Order::get_report_customer_id() Order::get report customer id code WC 10.6.2
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;
}