PluginProbe
Defender Security – Malware Scanner, Login Security & Firewall / 6.2.2
Defender Security – Malware Scanner, Login Security & Firewall v6.2.2
6.3.0 6.2.3 6.2.4 6.2.0 6.2.1 6.2.2 6.1.0 5.3.1 5.4.0 5.4.1 5.5.0 5.5.1 5.6.0 5.6.1 5.6.2 5.7.0 5.7.1 5.7.2 5.8.0 5.8.1 5.9.0 6.0.0 6.0.1 3.0.1 3.1.0 All 141 releases
defender-security / src / traits / scan-email-template.php

scan-email-template.php in Defender Security – Malware Scanner, Login Security & Firewall 6.2.2, at src/traits/scan-email-template.php

55 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Handle common Scan notification and reporting template.
4 *
5 * @since 3.8.0
6 * @package WP_Defender\Traits
7 */
8
9 namespace WP_Defender\Traits;
10
11 trait Scan_Email_Template {
12
13 /**
14 * Get email template.
15 *
16 * @return array
17 */
18 public function get_email_template(): array {
19 return array(
20 'found' => array(
21 'subject' => esc_html__(
22 'Issues Report for {SITE_URL}: {ISSUES_COUNT} issue(s) found.',
23 'defender-security'
24 ),
25 'body' => esc_html__(
26 'Hi {USER_NAME},
27
28 A scan of {SITE_URL} identified {ISSUES_COUNT} issue(s). The issue(s) found is/are listed below.
29
30 {ISSUES_LIST}',
31 'defender-security'
32 ),
33 ),
34 'not_found' => array(
35 'subject' => esc_html__( 'Issues Report for {SITE_URL}: {ISSUES_COUNT} issues found.', 'defender-security' ),
36 'body' => esc_html__(
37 'Hi {USER_NAME},
38
39 No vulnerabilities have been found for {SITE_URL}.',
40 'defender-security'
41 ),
42 ),
43 'error' => array(
44 'subject' => esc_html__( 'Issues Report for {SITE_URL}: scan failed.', 'defender-security' ),
45 'body' => esc_html__(
46 'Hi {USER_NAME},
47
48 We couldn\'t scan {SITE_URL} for vulnerabilities. Please visit your site and run a manual scan.',
49 'defender-security'
50 ),
51 ),
52 );
53 }
54 }
55