| Current Path : /home/flapst5/ekmtoronto.com/wp-content/plugins/wp-defender/src/traits/ |
| Current File : /home/flapst5/ekmtoronto.com/wp-content/plugins/wp-defender/src/traits/scan-email-template.php |
<?php
/**
* Handle common Scan notification and reporting template.
*
* @since 3.8.0
* @package WP_Defender\Traits
*/
namespace WP_Defender\Traits;
trait Scan_Email_Template {
/**
* Get email template.
*
* @return array
*/
public function get_email_template(): array {
return array(
'found' => array(
'subject' => esc_html__(
'Issues Report for {SITE_URL}: {ISSUES_COUNT} issue(s) found.',
'wpdef'
),
'body' => esc_html__(
'Hi {USER_NAME},
A scan of {SITE_URL} identified {ISSUES_COUNT} issue(s). The issue(s) found is/are listed below.
{ISSUES_LIST}',
'wpdef'
),
),
'not_found' => array(
'subject' => esc_html__( 'Issues Report for {SITE_URL}: {ISSUES_COUNT} issues found.', 'wpdef' ),
'body' => esc_html__(
'Hi {USER_NAME},
No vulnerabilities have been found for {SITE_URL}.',
'wpdef'
),
),
'error' => array(
'subject' => esc_html__( 'Issues Report for {SITE_URL}: scan failed.', 'wpdef' ),
'body' => esc_html__(
'Hi {USER_NAME},
We couldn\'t scan {SITE_URL} for vulnerabilities. Please visit your site and run a manual scan.',
'wpdef'
),
),
);
}
}