Automattic\WooCommerce\Admin\Overrides
Order::get_report_customer_id()
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() Order::get report customer id WC 9.7.1
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; }