WP HOOKS
akcjaod 4.4.0

pre_auto_update

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

Opis — z kodu źródłowego

Fires immediately prior to an auto-update.

Parametry

ParametrTypOpis
$typestringThe type of update being checked: 'core', 'theme', 'plugin', or 'translation'.
$itemobjectThe update offer.
$contextstringThe filesystem context (a path) against which filesystem access and status should be checked.

Wywołanie

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

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

Popularne w tej kategorii