filtrod MU (3.0.0)
wpmu_drop_tables
Opis — z kodu źródłowego
Filters the tables to drop when the site is deleted.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$tables | string[] | Array of names of the site tables to be dropped. |
$site_id | int | The ID of the site to drop tables for. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wpmu_drop_tables', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wpmu_drop_tables', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}