Title: auto_plugin_update_send_email
Published: August 11, 2020
Last modified: April 28, 2025

---

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

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/auto_plugin_update_send_email/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/auto_plugin_update_send_email/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/auto_plugin_update_send_email/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/auto_plugin_update_send_email/?output_format=md#changelog)
 * [User Contributed Notes](https://developer.wordpress.org/reference/hooks/auto_plugin_update_send_email/?output_format=md#user-contributed-notes)

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

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

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

 `$enabled`bool

True if plugin update notifications are enabled, false otherwise.

`$update_results`array

The results of plugins update tasks.

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

    ```php
    $notifications_enabled = apply_filters( 'auto_plugin_update_send_email', true, $update_results['plugin'] );
    ```

[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/6.9.4/src/wp-admin/includes/class-wp-automatic-updater.php#L1177)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/class-wp-automatic-updater.php#L1177-L1177)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/auto_plugin_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_plugin_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](https://developer.wordpress.org/reference/hooks/auto_plugin_update_send_email/?output_format=md#user-contributed-notes)󠁿

 1.  [Skip to note 2 content](https://developer.wordpress.org/reference/hooks/auto_plugin_update_send_email/?output_format=md#comment-content-5100)
 2.   [iSaumya](https://profiles.wordpress.org/isaumya/)  [  5 years ago  ](https://developer.wordpress.org/reference/hooks/auto_plugin_update_send_email/#comment-5100)
 3. [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fauto_plugin_update_send_email%2F%23comment-5100)
    Vote results for this note: 0[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fauto_plugin_update_send_email%2F%23comment-5100)
 4. Disable the automated notification email that is sent via WordPress after you have
    enabled automatic plugin update just by using one line of code:
 5.     ```php
        add_filter( 'auto_plugin_update_send_email', '__return_false' );
        ```
    
 6.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fauto_plugin_update_send_email%2F%3Freplytocom%3D5100%23feedback-editor-5100)

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