Automattic\WooCommerce\Internal\DataStores\Orders
OrdersTableQuery::get_table_name
Returns the name of one of the OrdersTableDatastore tables.
Метод класса: OrdersTableQuery{}
Хуков нет.
Возвращает
Строку. The prefixed table name.
Использование
$OrdersTableQuery = new OrdersTableQuery(); $OrdersTableQuery->get_table_name( $table_id ): string;
- $table_id(строка)
- Table identifier. One of
'orders','operational_data','addresses','meta'.
По умолчанию:''
Код OrdersTableQuery::get_table_name() OrdersTableQuery::get table name WC 10.8.1
public function get_table_name( string $table_id = '' ): string {
if ( ! isset( $this->tables[ $table_id ] ) ) {
// Translators: %s is a table identifier.
throw new \Exception( sprintf( __( 'Invalid table id: %s.', 'woocommerce' ), $table_id ) );
}
return $this->tables[ $table_id ];
}