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".


Top ↑

Parameters

$cqueries

(string[])An array of dbDelta create SQL queries.


Top ↑

Source

File: wp-admin/includes/upgrade.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.3.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.