Automattic\WooCommerce\Internal\DataStores\Orders

OrdersTableDataStore::join_operational_data_table_to_order_query()privateWC 1.0

Helper method to join order operational data table.

Method of the class: OrdersTableDataStore{}

No Hooks.

Return

Array. Select and join queries for operational data table.

Usage

// private - for code of main (parent) class only
$result = $this->join_operational_data_table_to_order_query( $order_table_alias, $operational_table_alias );
$order_table_alias(string) (required)
Alias to use for order table.
$operational_table_alias(string) (required)
Alias to use for operational data table.

OrdersTableDataStore::join_operational_data_table_to_order_query() code WC 8.7.0

private function join_operational_data_table_to_order_query( $order_table_alias, $operational_table_alias ) {
	$operational_data_table = $this::get_operational_data_table_name();

	return $this->generate_select_and_join_clauses(
		$order_table_alias,
		$operational_data_table,
		$operational_table_alias,
		$this->operational_data_column_mapping
	);
}