WordPress at Your Fingertips
function is not described

WC_Install::verify_base_tables() public WC 1.0

Check if all the base tables are present.

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

No Hooks.

Return

Array. List of querues.

Usage

$result = WC_Install::verify_base_tables( $modify_notice, $execute );
$modify_notice(true|false)
Whether to modify notice based on if all tables are present.
Default: true
$execute(true|false)
Whether to execute get_schema queries as well.
Default: false

Code of WC_Install::verify_base_tables() WC 5.7.0

public static function verify_base_tables( $modify_notice = true, $execute = false ) {
	require_once ABSPATH . 'wp-admin/includes/upgrade.php';

	if ( $execute ) {
		self::create_tables();
	}
	$queries        = dbDelta( self::get_schema(), false );
	$missing_tables = array();
	foreach ( $queries as $table_name => $result ) {
		if ( "Created table $table_name" === $result ) {
			$missing_tables[] = $table_name;
		}
	}

	if ( 0 < count( $missing_tables ) ) {
		if ( $modify_notice ) {
			WC_Admin_Notices::add_notice( 'base_tables_missing' );
		}
		update_option( 'woocommerce_schema_missing_tables', $missing_tables );
	} else {
		if ( $modify_notice ) {
			WC_Admin_Notices::remove_notice( 'base_tables_missing' );
		}
		update_option( 'woocommerce_schema_version', WC()->db_version );
		delete_option( 'woocommerce_schema_missing_tables' );
	}
	return $missing_tables;
}