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;
The SQL queries to execute.
По умолчанию: ''
Ture to actually execute the queries, false to only simulate the execution.
По умолчанию: true

Код DatabaseUtil::dbdelta() WC 8.9.0

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

	return dbDelta( $queries, $execute );