dbdelta ( $queries = '', $execute = true )

  • (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.
  • (bool) $execute Optional. Whether or not to execute the query right away. Default true.
  • (array) Strings containing the results of the various update queries.
Defined at:


Modifies the database based on specified SQL statements.

Useful for creating new tables and updating existing tables to a new structure.

Related Functions

add_meta, deslash, delete_meta, add_metadata, add_meta_box

Top Google Results

User discussions

wpseek mobile