WordPress at Your Fingertips
function is not described


OrderRefund::get_report_customer_id() public WC 1.0

Get the customer ID of the parent order used for reports in the customer lookup table.

{} It's a method of the class: OrderRefund{}

No Hooks.


Int|true|false. Customer ID of parent order, or false if parent order not found.


$OrderRefund = new OrderRefund();

Code of OrderRefund::get_report_customer_id() WC 6.1.1

public function get_report_customer_id() {
	$parent_order = wc_get_order( $this->get_parent_id() );

	if ( ! $parent_order ) {
		return false;

	return CustomersDataStore::get_or_create_customer_from_order( $parent_order );