Title: auto_theme_update_send_email
Published: August 11, 2020
Last modified: May 20, 2026

---

# apply_filters( ‘auto_theme_update_send_email’, bool $enabled, array $update_results )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/auto_theme_update_send_email/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/auto_theme_update_send_email/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/auto_theme_update_send_email/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/auto_theme_update_send_email/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/auto_theme_update_send_email/?output_format=md#wp--skip-link--target)

Filters whether to send an email following an automatic background theme update.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/auto_theme_update_send_email/?output_format=md#parameters)󠁿

 `$enabled`bool

True if theme update notifications are enabled, false otherwise.

`$update_results`array

The results of theme update tasks.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/auto_theme_update_send_email/?output_format=md#source)󠁿

    ```php
    $notifications_enabled = apply_filters( 'auto_theme_update_send_email', true, $update_results['theme'] );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/class-wp-automatic-updater.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-admin/includes/class-wp-automatic-updater.php#L1200)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-wp-automatic-updater.php#L1200-L1200)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/auto_theme_update_send_email/?output_format=md#related)󠁿

| Used by | Description | 
| [WP_Automatic_Updater::after_plugin_theme_update()](https://developer.wordpress.org/reference/classes/wp_automatic_updater/after_plugin_theme_update/)`wp-admin/includes/class-wp-automatic-updater.php` |

Checks whether an email should be sent after attempting plugin or theme updates.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/auto_theme_update_send_email/?output_format=md#changelog)󠁿

| Version | Description | 
| [5.5.1](https://developer.wordpress.org/reference/since/5.5.1/) | Added the `$update_results` parameter. | 
| [5.5.0](https://developer.wordpress.org/reference/since/5.5.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fauto_theme_update_send_email%2F)
before being able to contribute a note or feedback.