WP HOOKS
filtrod MU (3.0.0)

wpmu_drop_tables

Args 2Plik wp-includes/ms-site.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the tables to drop when the site is deleted.

Parametry

ParametrTypOpis
$tablesstring[]Array of names of the site tables to be dropped.
$site_idintThe 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
}