dbdelta_queries filter-hookWP 3.3.0

Filters the dbDelta SQL queries.

Usage

add_filter( 'dbdelta_queries', 'wp_kama_dbdelta_queries_filter' );

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

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

Changelog

Since 3.3.0 Introduced.

Where the hook is called

dbDelta()
dbdelta_queries
wp-admin/includes/upgrade.php 2828
$queries = apply_filters( 'dbdelta_queries', $queries );

Where the hook is used in WordPress

Usage not found.