\MainWP\DashboardMainWP_Format

Class MainWP_Format

Summary

Methods
Properties
Constants
get_class_name()
get_update_plugins_items()
get_update_themes_items()
get_update_wp_items()
get_site_updates_items()
format_email()
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

get_update_plugins_items()

get_update_plugins_items() : array

Method get_update_plugins_items().

Get plugins update.

Returns

array —

$update_items Plugins update items.

get_update_themes_items()

get_update_themes_items() : array

Method get_update_themes_items().

Get themes update items to email.

Returns

array —

$update_items Update themes.

get_update_wp_items()

get_update_wp_items() : array

Method get_update_wp_items().

Get WP update to email.

Returns

array —

$update_items WP update items.

get_site_updates_items()

get_site_updates_items(string  $what, array  $sites_ids = false) : array

Method get_site_updates_items().

Get Updates items of websites.

Parameters

string $what

values: plugin, theme, wpcore.

array $sites_ids

Websites ids filter (option).

Returns

array —

$update_items WP update items.

format_email()

format_email(string  $to_email = null, string  $body, string  $title = '', boolean  $plain_text = false) : string

Method format_email()

Format email.

Parameters

string $to_email

Send to emails.

string $body

Email's body.

string $title

Email's title.

boolean $plain_text

text format.

Returns

string —

Formatted content