WPDev.one

dbDelta()

dbDelta( mixed $queries = '', mixed $execute = true )

Modifies the database based on specified SQL statements.

Parameters 2 required

Name / Type Description
mixed

(string[] | string) $queries Optional. The query to run. Can be multiple queries in an array, or a string of queries separated by semicolons. Default empty string.

Required
bool

$execute Optional. Whether or not to execute the query right away. Default true.

Required

Return Value

(string[])
Strings containing the results of the various update queries.

Function Information

Since Version
1.5.0
Source File
wp-admin/includes/upgrade.php
Advertisement