Automattic\WooCommerce\Internal\DataStores\Orders
OrdersTableQuery::get_core_mapping_alias()
Returns the table alias for a given table mapping.
Method of the class: 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. |
OrdersTableQuery::get_core_mapping_alias() OrdersTableQuery::get core mapping alias code WC 9.3.3
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 ]; }