filtrod 3.3.0
dbdelta_create_queries
Opis — z kodu źródłowego
Filters the dbDelta SQL queries for creating tables and/or databases.
Queries filterable via this hook contain "CREATE TABLE" or "CREATE DATABASE".
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$cqueries | string[] | An array of dbDelta create SQL queries. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'dbdelta_create_queries', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'dbdelta_create_queries', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii