| @@ -432,8 +432,10 @@ | ||
| 432 | 432 | } elseif ( 'http_check' === $type ) { |
| 433 | 433 | $email_description = esc_html__( 'Alert if any of your websites return unexpected HTTP status after running updates.', 'mainwp' ); |
| 434 | 434 | } elseif ( 'deactivated_license_alert' === $type ) { |
| 435 | 435 | $email_description = esc_html__( 'Receive a notification when an extension\'s license is deactivated.', 'mainwp' ); |
| 436 | + } elseif ( 'auto_updates' === $type ) { | |
| 437 | + $email_description = esc_html__( 'Receive a notification about auto-updates.', 'mainwp' ); | |
| 436 | 438 | } |
| 437 | 439 | |
| 438 | 440 | $addition_desc = apply_filters( 'mainwp_notification_type_desc', '', $type ); |
| 439 | 441 | if ( ! empty( $addition_desc ) ) { |
| @@ -504,8 +506,9 @@ | ||
| 504 | 506 | */ |
| 505 | 507 | public static function get_notification_types( $type = '' ) { |
| 506 | 508 | $types = array( |
| 507 | 509 | 'daily_digest' => esc_html__( 'Daily Digest Email', 'mainwp' ), |
| 510 | + 'auto_updates' => esc_html__( 'Auto Updates Email', 'mainwp' ), | |
| 508 | 511 | 'uptime' => esc_html__( 'Uptime Monitoring Email', 'mainwp' ), |
| 509 | 512 | 'site_health' => esc_html__( 'Site Health Monitoring Email', 'mainwp' ), |
| 510 | 513 | 'deactivated_license_alert' => esc_html__( 'Extension License Deactivation Notification Email', 'mainwp' ), |
| 511 | 514 | ); |
| @@ -666,8 +669,14 @@ | ||
| 666 | 669 | 'disable' => $disable, |
| 667 | 670 | 'recipients' => $recipients, |
| 668 | 671 | 'subject' => $general ? 'Daily Digest from Your MainWP Dashboard' : '[site.name] Daily Digest from Your MainWP Dashboard', |
| 669 | 672 | 'heading' => $general ? 'Daily Digest' : '[site.name] Daily Digest', |
| 673 | + ), | |
| 674 | + 'auto_updates' => array( | |
| 675 | + 'disable' => $disable, | |
| 676 | + 'recipients' => $recipients, | |
| 677 | + 'subject' => $general ? 'Auto Updates Notification from Your MainWP Dashboard' : '[site.name] Auto Updates Notification from Your MainWP Dashboard', | |
| 678 | + 'heading' => $general ? 'Auto Updates Notification' : '[site.name] Auto Updates Notification', | |
| 670 | 679 | ), |
| 671 | 680 | 'uptime' => array( |
| 672 | 681 | 'disable' => $disable, |
| 673 | 682 | 'recipients' => $recipients, |