apply_filters( 'send_core_update_notification_email', bool $notify, object $item )
- Since
- 3.7.0
Filters whether to notify the site administrator of a new core update.
Description
By default, administrators are notified when the update offer received from WordPress.org sets a particular flag. This allows some discretion in if and when to notify. This filter is only evaluated once per release. If the same email address was already notified of the same new version, WordPress won't repeatedly email the administrator. This filter is also used on about.php to check if a plugin has disabled these notifications.
Parameters
$notifybool- Whether the site administrator is notified.
$itemobject- The update offer.
Fired at · 1
wp-admin/includes/class-wp-automatic-updater.php:345WP_Automatic_Updater::send_core_update_notification_email()
Source
* * @since 3.7.0 * * @param bool $notify Whether the site administrator is notified. * @param object $item The update offer. */ if ( ! apply_filters( 'send_core_update_notification_email', $notify, $item ) ) { return false; } $this->send_email( 'manual', $item ); return true; }History
Introduced in 3.7.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.