Automattic\WooCommerce\Internal\DataStores\Orders

OrdersTableDataStore::join_operational_data_table_to_order_query()privateWC 1.0

Helper method to join order operational data table.

Метод класса: 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.

Code of OrdersTableDataStore::join_operational_data_table_to_order_query() WC 7.1.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
	);
}