Automattic\WooCommerce\Internal\Utilities
COTMigrationUtil::get_table_for_order_meta()
Get the name of the database table that's currently in use for orders.
Метод класса: COTMigrationUtil{}
Хуков нет.
Возвращает
Строку
.
Использование
$COTMigrationUtil = new COTMigrationUtil(); $COTMigrationUtil->get_table_for_order_meta();
Код COTMigrationUtil::get_table_for_order_meta() COTMigrationUtil::get table for order meta WC 8.1.1
public function get_table_for_order_meta() { if ( $this->custom_orders_table_usage_is_enabled() ) { $table_name = OrdersTableDataStore::get_meta_table_name(); } else { global $wpdb; $table_name = $wpdb->postmeta; } return $table_name; }