Automattic\WooCommerce\Internal\DataStores\Orders

DataSynchronizer::get_table_existspublicWC 1.0

Returns the value of the orders table created option. If it's not set, then it checks the orders table and set it accordingly.

Method of the class: DataSynchronizer{}

No Hooks.

Returns

true|false. Whether orders table exists.

Usage

$DataSynchronizer = new DataSynchronizer();
$DataSynchronizer->get_table_exists(): bool;

DataSynchronizer::get_table_exists() code WC 10.3.6

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();
	}
}