WordPress at Your Fingertips
function is not described

ActionScheduler_Abstract_Schema::tables_exist() public WC 1.0

Confirms that all of the tables registered by this schema class have been created.

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

No Hooks.

Return

true|false.

Usage

$ActionScheduler_Abstract_Schema = new ActionScheduler_Abstract_Schema();
$ActionScheduler_Abstract_Schema->tables_exist();

Code of ActionScheduler_Abstract_Schema::tables_exist() WC 6.1.1

public function tables_exist() {
	global $wpdb;

	$existing_tables = $wpdb->get_col( 'SHOW TABLES' );
	$expected_tables = array_map(
		function ( $table_name ) use ( $wpdb ) {
			return $wpdb->prefix . $table_name;
		},
		$this->tables
	);

	return count( array_intersect( $existing_tables, $expected_tables ) ) === count( $expected_tables );
}