dbdelta_create_queries filter-hookWP 3.3.0

Filters the dbDelta SQL queries for creating tables and/or databases.

Queries filterable via this hook contain "CREATE TABLE" or "CREATE DATABASE".

Usage

add_filter( 'dbdelta_create_queries', 'wp_kama_dbdelta_create_queries_filter' );

/**
 * Function for `dbdelta_create_queries` filter-hook.
 * 
 * @param string[] $cqueries An array of dbDelta create SQL queries.
 *
 * @return string[]
 */
function wp_kama_dbdelta_create_queries_filter( $cqueries ){

	// filter...
	return $cqueries;
}
$cqueries(string[])
An array of dbDelta create SQL queries.

Changelog

Since 3.3.0 Introduced.

Where the hook is called

dbDelta()
dbdelta_create_queries
wp-admin/includes/upgrade.php 2882
$cqueries = apply_filters( 'dbdelta_create_queries', $cqueries );

Where the hook is used in WordPress

Usage not found.