Filters the email sent following an automatic background update for plugins and themes.
Parameters
$emailarray$typestring- The type of email being sent. Can be one of
'success','fail','mixed'. $successful_updatesarray- A list of updates that succeeded.
$failed_updatesarray- A list of updates that failed.
Source
$email = apply_filters( 'auto_plugin_theme_update_email', $email, $type, $successful_updates, $failed_updates );
Changelog
| Version | Description |
|---|---|
| 5.5.0 | Introduced. |
The
apply_filters( 'auto_plugin_theme_update_email', $email, $type, $successful_updates, $failed_updates )filter is used in WordPress to modify the email content that gets sent after an automatic update of plugins or themes.Add the following code to your theme’s
functions.phpfile or in a custom plugin.