WP HOOKS
filtrod 3.7.0

auto_core_update_send_email

Args 4Plik 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 core update.

Parametry

ParametrTypOpis
$sendboolWhether to send the email. Default true.
$typestringThe type of email to send. Can be one of 'success', 'fail', 'critical'.
$core_updateobjectThe update offer that was attempted.
$resultmixedThe result for the core update. Can be WP_Error.

Wywołanie

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

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

Popularne w tej kategorii