Automattic\WooCommerce\Internal\DataStores\Orders

OrdersTableQuery::get_core_mapping_alias()publicWC 7.0.0

Returns the table alias for a given table mapping.

Метод класса: OrdersTableQuery{}

No Hooks.

Return

String. Table alias.

Usage

$OrdersTableQuery = new OrdersTableQuery();
$OrdersTableQuery->get_core_mapping_alias( $mapping_id ): string;
$mapping_id(string) (required)
The mapping name (e.g. 'orders' or 'operational_data').

Changelog

Since 7.0.0 Introduced.

Code of OrdersTableQuery::get_core_mapping_alias() WC 7.1.0

public function get_core_mapping_alias( string $mapping_id ): string {
	return in_array( $mapping_id, array( 'billing_address', 'shipping_address' ), true )
		? $mapping_id
		: $this->tables[ $mapping_id ];
}