\MainWP\DashboardMainWP_Notification

Class MainWP_Notification

Summary

Methods
Properties
Constants
get_class_name()
send_notify_user()
send_http_check_notification()
send_license_deactivated_alert()
send_daily_digest_notification()
send_websites_uptime_monitoring()
send_websites_health_status_notification()
send_wp_mail()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

get_class_name()

get_class_name() : object

Method get_class_name()

Get Class Name.

Returns

object

send_notify_user()

send_notify_user(integer  $userId, string  $subject, string  $content) 

Method send_notify_user()

To send user a notification.

Parameters

integer $userId

User ID.

string $subject

Email Subject.

string $content

Email Content.

send_http_check_notification()

send_http_check_notification(mixed  $email_settings, array  $sites_status, boolean  $plain_text) : boolean

Method send_http_check_notification().

Send HTTP response email notification.

Parameters

mixed $email_settings

Email settings.

array $sites_status

Websites http status.

boolean $plain_text

Text format.

Returns

boolean —

False if failed.

send_license_deactivated_alert()

send_license_deactivated_alert(mixed  $email_settings, array  $deactivated_license, boolean  $plain_text) : boolean

Method send_license_deactivated_alert().

Send extensions license deactivated email notification.

Parameters

mixed $email_settings

Email settings.

array $deactivated_license

Websites http status.

boolean $plain_text

Text format.

Returns

boolean —

False if failed.

send_daily_digest_notification()

send_daily_digest_notification(array  $email_settings, boolean  $available_updates, mixed  $wp_updates, mixed  $plugin_updates, mixed  $theme_updates, mixed  $sites_disconnected, boolean  $plain_text, boolean  $sites_ids = false, boolean  $email_site = false) : boolean

Method send_daily_digest_notification().

Sent available updates notification email.

Parameters

array $email_settings

Email settings.

boolean $available_updates

Update avaiable.

mixed $wp_updates

WP updates.

mixed $plugin_updates

Plugins updates.

mixed $theme_updates

Themes updates.

mixed $sites_disconnected

Sites disconnected.

boolean $plain_text

Text format.

boolean $sites_ids

Websites ids - default false (option).

boolean $email_site

current report site.

Returns

boolean

send_websites_uptime_monitoring()

send_websites_uptime_monitoring(string  $emails, string  $subject, string  $mail_content, boolean  $plain_text) 

Method send_websites_uptime_monitoring().

Send websites status email notification.

Parameters

string $emails

notification emails.

string $subject

email subject.

string $mail_content

email content.

boolean $plain_text

Text format.

send_websites_health_status_notification()

send_websites_health_status_notification(string  $email, string  $subject, string  $mail_content, boolean  $plain_text) 

Method send_websites_health_status_notification().

Send websites status email notification.

Parameters

string $email

notification email.

string $subject

subject.

string $mail_content

email content.

boolean $plain_text

Text format.

send_wp_mail()

send_wp_mail(string  $email, string  $subject, boolean  $mail_content, string  $content_type = '') 

Method send_wp_mail().

Send email via wp_mail().

Parameters

string $email

send to email.

string $subject

email content.

boolean $mail_content

Text format.

string $content_type

email content.