dbdelta_create_queries WordPress Filter Hook
The dbdelta_create_queries hook is triggered when dbdelta() is about to create SQL queries for creating or modifying a database table. It allows you to modify the SQL queries before they are executed.
apply_filters( 'dbdelta_create_queries', string[] $cqueries ) #
Filters the dbDelta SQL queries for creating tables and/or databases.
Description
Queries filterable via this hook contain "CREATE TABLE" or "CREATE DATABASE".
Parameters
- $cqueries
(string[])An array of dbDelta create SQL queries.
Source
Changelog
Version | Description |
---|---|
3.3.0 | Introduced. |