WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Internal\ProductAttributesLookup

LookupDataStore::check_lookup_table_exists() public WC 1.0

Check if the lookup table exists in the database.

TODO: Remove this method and references to it once the lookup table is created via data migration.

{} It's a method of the class: LookupDataStore{}

No Hooks.

Return

true|false.

Usage

$LookupDataStore = new LookupDataStore();
$LookupDataStore->check_lookup_table_exists();

Code of LookupDataStore::check_lookup_table_exists() WC 5.9.0

public function check_lookup_table_exists() {
	global $wpdb;

	$query = $wpdb->prepare( 'SHOW TABLES LIKE %s', $wpdb->esc_like( $this->lookup_table_name ) );

	// phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
	return $this->lookup_table_name === $wpdb->get_var( $query );
}