WP HOOKS
filtrod 2.8.0

upgrader_clear_destination

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

Opis — z kodu źródłowego

Filters whether the upgrader cleared the destination.

Parametry

ParametrTypOpis
$removedtrue | \WP_ErrorWhether the destination was cleared. True upon success, WP_Error on failure.
$local_destinationstringThe local package destination.
$remote_destinationstringThe remote package destination.
$hook_extraarrayExtra arguments passed to hooked filters.

Wywołanie

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

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

Popularne w tej kategorii