Automattic\WooCommerce\Internal\DataStores\Orders

OrdersTableDataStore::join_billing_address_table_to_order_query()privateWC 1.0

Helper method to generate join query for billing addresses in wc_address table.

Method of the class: OrdersTableDataStore{}

No Hooks.

Return

Array. Select and join statements for billing address table.

Usage

// private - for code of main (parent) class only
$result = $this->join_billing_address_table_to_order_query( $order_table_alias, $address_table_alias );
$order_table_alias(string) (required)
Alias for order table to use in join.
$address_table_alias(string) (required)
Alias for address table to use in join.

OrdersTableDataStore::join_billing_address_table_to_order_query() code WC 8.7.0

private function join_billing_address_table_to_order_query( $order_table_alias, $address_table_alias ) {
	return $this->join_address_table_order_query( 'billing', $order_table_alias, $address_table_alias );
}