auto_plugin_theme_update_email

auto_plugin_theme_update_email

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('auto_plugin_theme_update_email') is found 1 times:

  • /wp-admin/includes/class-wp-automatic-updater.php line 1522
    1518
    1519
    1520
    1521
    1522
    1523
    1524
    1525
    1526
    1527
    1528
    * @param string $type               The type of email being sent. Can be one of 'success', 'fail', 'mixed'.
     * @param array  $successful_updates A list of updates that succeeded.
     * @param array  $failed_updates     A list of updates that failed.
     */
    $email = apply_filters( 'auto_plugin_theme_update_email', $email, $type, $successful_updates, $failed_updates );
     
    $result = wp_mail( $email['to'], wp_specialchars_decode( $email['subject'] ), $email['body'], $email['headers'] );
     
    if ( $result ) {
        update_option( 'auto_plugin_theme_update_emails', $past_failure_emails );
    }