WP HOOKS
filtrod 5.5.0

auto_plugin_theme_update_email

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

Opis — z kodu źródłowego

Filters the email sent following an automatic background update for plugins and themes.

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 The email's subject. @type string $body The email message body. @type string $headers Any email headers, defaults to no headers. }
$typestringThe type of email being sent. Can be one of 'success', 'fail', 'mixed'.
$successful_updatesarrayA list of updates that succeeded.
$failed_updatesarrayA list of updates that failed.

Wywołanie

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

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

Popularne w tej kategorii