WP HOOKS
filtrod 5.5.0

auto_plugin_update_send_email

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

Opis — z kodu źródłowego

Filters whether to send an email following an automatic background plugin update.

Parametry

ParametrTypOpis
$enabledboolTrue if plugin update notifications are enabled, false otherwise.
$update_resultsarrayThe results of plugins update tasks.

Wywołanie

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

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

Popularne w tej kategorii