Automattic\WooCommerce\Internal\DataStores\Orders
DataSynchronizer::get_table_exists
Returns the value of the orders table created option. If it's not set, then it checks the orders table and set it accordingly.
Метод класса: DataSynchronizer{}
Хуков нет.
Возвращает
bool. Whether orders table exists.
Использование
$DataSynchronizer = new DataSynchronizer(); $DataSynchronizer->get_table_exists(): bool;
Код DataSynchronizer::get_table_exists() DataSynchronizer::get table exists WC 11.3.0
public function get_table_exists(): bool {
$table_exists = get_option( self::ORDERS_TABLE_CREATED );
switch ( $table_exists ) {
case 'no':
case 'yes':
return 'yes' === $table_exists;
default:
return $this->check_orders_table_exists();
}
}