Automattic\WooCommerce\Internal\Utilities
COTMigrationUtil::get_table_for_order_meta
Get the name of the database table that's currently in use for orders.
Method of the class: COTMigrationUtil{}
No Hooks.
Returns
String.
Usage
$COTMigrationUtil = new COTMigrationUtil(); $COTMigrationUtil->get_table_for_order_meta();
COTMigrationUtil::get_table_for_order_meta() COTMigrationUtil::get table for order meta code WC 10.7.0
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;
}