dbdelta_insert_queries filter-hookWP 3.3.0

Filters the dbDelta SQL queries for inserting or updating.

Queries filterable via this hook contain "INSERT INTO" or "UPDATE".

Usage

add_filter( 'dbdelta_insert_queries', 'wp_kama_dbdelta_insert_queries_filter' );

/**
 * Function for `dbdelta_insert_queries` filter-hook.
 * 
 * @param string[] $iqueries An array of dbDelta insert or update SQL queries.
 *
 * @return string[]
 */
function wp_kama_dbdelta_insert_queries_filter( $iqueries ){

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

Changelog

Since 3.3.0 Introduced.

Where the hook is called

dbDelta()
dbdelta_insert_queries
wp-admin/includes/upgrade.php 2788
$iqueries = apply_filters( 'dbdelta_insert_queries', $iqueries );

Where the hook is used in WordPress

Usage not found.