WP HOOKS
filtrod 2.8.0

upgrader_post_install

Args 3Plik wp-admin/includes/class-wp-upgrader.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the installation response after the installation has finished.

Parametry

ParametrTypOpis
$responseboolInstallation response.
$hook_extraarrayExtra arguments passed to hooked filters.
$resultarrayInstallation result data.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'upgrader_post_install', 'twoja_funkcja', 10, 3 );

function twoja_funkcja($param_1, $param_2, $param_3) {
	// Twój kod
}

Popularne w tej kategorii