send_core_update_notification_email
过滤钩子
apply_filters( 'send_core_update_notification_email', $notify, $item )
- 参数
-
-
(bool)
$notify
Whether the site administrator is notified.- Required: 是
-
(object)
$item
The update offer.- Required: 是
-
(bool)
- 定义位置
-
-
wp-admin/includes/class-wp-automatic-updater.php
, line 290
-
wp-admin/includes/class-wp-automatic-updater.php
- 引入
- 3.7.0
- 弃用
- –
Filters whether to notify the site administrator of a new core update.
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.
if ( ! apply_filters( 'send_core_update_notification_email', $notify, $item ) ) {
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。