Automattic\WooCommerce\Internal\DataStores\Orders
OrdersTableDataStore::get_address_table_alias()
Helper function to get alias for address table, this is used in select query.
Method of the class: OrdersTableDataStore{}
No Hooks.
Return
String
. Alias.
Usage
// private - for code of main (parent) class only $result = $this->get_address_table_alias( $type ): string;
- $type(string) (required)
- Type of address; 'billing' or 'shipping'.
OrdersTableDataStore::get_address_table_alias() OrdersTableDataStore::get address table alias code WC 9.3.3
private function get_address_table_alias( string $type ): string { return 'billing' === $type ? 'b' : 's'; }