WP HOOKS
filtrod 3.8.0

automatic_updates_debug_email

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

Opis — z kodu źródłowego

Filters the debug email that can be sent following an automatic background core update.

Parametry

ParametrTypOpis
$emailarray{ Array of email arguments that will be passed to wp_mail(). @type string $to The email recipient. An array of emails can be returned, as handled by wp_mail(). @type string $subject Email subject. @type string $body Email message body. @type string $headers Any email headers. Default empty. }
$failuresintThe number of failures encountered while upgrading.
$resultsmixedThe results of all attempted updates.

Wywołanie

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

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

Popularne w tej kategorii