On this page
apply_filters( 'auto_theme_update_send_email', bool $enabled, array $update_results )
Filters whether to send an email following an automatic background theme update.
Parameters
$enabledbool-
True if theme update notifications are enabled, false otherwise.
$update_resultsarray-
The results of theme update tasks.
Source
File: wp-admin/includes/class-wp-automatic-updater.php. View all references
$notifications_enabled = apply_filters( 'auto_theme_update_send_email', true, $update_results['theme'] );
Related
Used By
| Used By | Description |
|---|---|
| WP_Automatic_Updater::after_plugin_theme_update() wp-admin/includes/class-wp-automatic-updater.php | If we tried to perform plugin or theme updates, check if we should send an email. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/auto_theme_update_send_email