Automattic\WooCommerce\Internal\Utilities

DatabaseUtil::dbdelta()publicWC 1.0

Wrapper for the WordPress dbDelta function, allows to execute a series of SQL queries.

{} Это метод класса: DatabaseUtil{}

Хуков нет.

Возвращает

Массив. The result of the execution (or simulation) from dbDelta.

Использование

$DatabaseUtil = new DatabaseUtil();
$DatabaseUtil->dbdelta( $queries, $execute ): array;
$queries(строка)
The SQL queries to execute.
По умолчанию: ''
$execute(true|false)
Ture to actually execute the queries, false to only simulate the execution.
По умолчанию: true

Код DatabaseUtil::dbdelta() WC 6.6.1

public function dbdelta( string $queries = '', bool $execute = true ): array {
	require_once ABSPATH . 'wp-admin/includes/upgrade.php';

	return dbDelta( $queries, $execute );
}