Automattic\WooCommerce\Internal\DataStores\Orders

OrdersTableDataStore::get_address_table_alias()privateWC 1.0

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() code WC 8.7.0

private function get_address_table_alias( string $type ) : string {
	return 'billing' === $type ? 'b' : 's';
}