send_core_update_notification_email WordPress Filter Hook

This hook is used to send an email notification to a user when their WordPress core installation is out of date. The email includes a link to update their WordPress installation.

apply_filters( 'send_core_update_notification_email', bool $notify, object $item ) #

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.


Top ↑

Parameters

$notify

(bool)Whether the site administrator is notified.

$item

(object)The update offer.


Top ↑

Source

File: wp-admin/includes/class-wp-automatic-updater.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.