send_core_update_notification_email

send_core_update_notification_email

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('send_core_update_notification_email') is found 1 times:

  • /wp-admin/includes/class-wp-automatic-updater.php line 345
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
         *
         * @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;
    }

See this hook used in plugins: