Properties

$user_can_ignore_updates

$user_can_ignore_updates : boolean

User can ignore updates.

Type

boolean — User can ignore updates.

$user_can_update_trans

$user_can_update_trans : boolean

User can update translations.

Type

boolean — User can update translations.

$user_can_update_wp

$user_can_update_wp : boolean

User can update WordPress core files.

Type

boolean — User can update WordPress core files.

$user_can_update_themes

$user_can_update_themes : boolean

User can update themes.

Type

boolean — User can update themes.

$user_can_update_plugins

$user_can_update_plugins : boolean

User can update plugins.

Type

boolean — User can update plugins.

$continue_selector

$continue_selector : string

Placeholder for continue selector.

Type

string — Placeholder for continue selector.

$continue_update

$continue_update : string

Placeholder for continue update.

Type

string — Placeholder for continue update.

$continue_update_slug

$continue_update_slug : string

Placeholder for continue update slug.

Type

string — Placeholder for continue update slug.

Methods

get_class_name()

get_class_name() : object

Gets Class Name.

Returns

object

init()

init() 

Instantiates MainWP Updates Page.

init_menu()

init_menu() 

Renders init updates menu.

render_header()

render_header(string  $shownPage = '') 

Sets the MainWP Update page page title and pass it off to method MainWP_UI::render_top_header().

Parameters

string $shownPage

The page slug shown at this moment.

render_footer()

render_footer() 

Closes the page container.

render_site_link_dashboard()

render_site_link_dashboard(object  $website, boolean  $echo = true) : string

Generates individual site overview page link.

Parameters

object $website

The site object.

boolean $echo

Either echo or not.

Returns

string —

Dashboard link.

user_can_ignore_updates()

user_can_ignore_updates() : boolean

Checks if the current user has permission to uignore updates.

Returns

boolean —

Whether user can ignore updates or not.

user_can_update_trans()

user_can_update_trans() : boolean

Checks if the current user has permission to update translations.

Returns

boolean —

Whether user can update translations or not.

user_can_update_wp()

user_can_update_wp() : boolean

Checks if the current user has permission to update WordPress core files.

Returns

boolean —

Whether user can update WordPress or not.

user_can_update_themes()

user_can_update_themes() : boolean

Checks if the current user has permission to update themes.

Returns

boolean —

Whether user can update themes or not.

user_can_update_plugins()

user_can_update_plugins() : boolean

Checks if the current user has permission to update plugins.

Returns

boolean —

Whether user can update plugins or not.

render_wp_update_tab()

render_wp_update_tab(object  $websites, integer  $total_wp_upgrades, array  $all_groups_sites, array  $all_groups, integer  $site_offset_for_groups, string  $site_view) 

Render WP updates tab.

Parameters

object $websites

Object containing child sites info.

integer $total_wp_upgrades

Number of available WP upates.

array $all_groups_sites

Array containing all groups and sites.

array $all_groups

Array containing all groups.

integer $site_offset_for_groups

Offset value.

string $site_view

Current view.

render_plugins_update_tab()

render_plugins_update_tab(object  $websites, integer  $total_plugin_upgrades, object  $userExtension, array  $all_groups_sites, array  $all_groups, array  $allPlugins, array  $pluginsInfo, integer  $site_offset_for_groups, string  $site_view) 

Renders WP updates tab.

Parameters

object $websites

Object containing child sites info.

integer $total_plugin_upgrades

Number of available plugin updates.

object $userExtension

User extension.

array $all_groups_sites

Array of all groups and sites.

array $all_groups

Array of all groups.

array $allPlugins

Array of all plugins.

array $pluginsInfo

Array of all plugins info.

integer $site_offset_for_groups

Offset value.

string $site_view

Current view.

render_themes_update_tab()

render_themes_update_tab(object  $websites, integer  $total_theme_upgrades, object  $userExtension, array  $all_groups_sites, array  $all_groups, array  $allThemes, array  $themesInfo, integer  $site_offset_for_groups, string  $site_view) 

Renders theme update tab.

Parameters

object $websites

Object containing child sites info.

integer $total_theme_upgrades

Number of available theme updates.

object $userExtension

User extension.

array $all_groups_sites

Array of all groups and sites.

array $all_groups

Array of all groups.

array $allThemes

Array of all themes.

array $themesInfo

Array of all themes info.

integer $site_offset_for_groups

Offset value.

string $site_view

Current view.

render_trans_update_tab()

render_trans_update_tab(object  $websites, integer  $total_translation_upgrades, object  $userExtension, array  $all_groups_sites, array  $all_groups, array  $allTranslations, array  $translationsInfo, boolean  $mainwp_show_language_updates, integer  $site_offset_for_groups, string  $site_view) 

Renders translations update tab.

Parameters

object $websites

Object containing child sites info.

integer $total_translation_upgrades

Number of available translation updates.

object $userExtension

User extension.

array $all_groups_sites

Array of all groups and sites.

array $all_groups

Array of all groups.

array $allTranslations

Array of all translations.

array $translationsInfo

Array of all translations info.

boolean $mainwp_show_language_updates

Either or not show language updates.

integer $site_offset_for_groups

Offset value.

string $site_view

Current Site view.

render_abandoned_plugins_tab()

render_abandoned_plugins_tab(object  $websites, array  $all_groups_sites, array  $all_groups, array  $allPluginsOutdate, array  $decodedDismissedPlugins, integer  $site_offset_for_groups, string  $site_view) 

Renders abandoned plugins tab.

Parameters

object $websites

Object containing child sites info.

array $all_groups_sites

Array of all groups and sites.

array $all_groups

Array of all groups.

array $allPluginsOutdate

Array of all abandoned plugins.

array $decodedDismissedPlugins

Array of dismissed abandoned plugins.

integer $site_offset_for_groups

Offset value.

string $site_view

Current site view.

render_abandoned_themes_tab()

render_abandoned_themes_tab(object  $websites, array  $all_groups_sites, array  $all_groups, array  $allThemesOutdate, array  $decodedDismissedThemes, integer  $site_offset_for_groups, string  $site_view) 

Renders abandoned themes tab.

Parameters

object $websites

Object containing child sites info.

array $all_groups_sites

Array of all groups and sites.

array $all_groups

Array of all groups.

array $allThemesOutdate

Array of all abandoned plugins.

array $decodedDismissedThemes

Array of dismissed abandoned plugins.

integer $site_offset_for_groups

Offset value.

string $site_view

Current site view.

render_js_updates()

render_js_updates(string  $site_view) 

Renders JavaScript for update page.

Parameters

string $site_view

current site view.

render_header_tabs()

render_header_tabs(boolean  $show_language_updates, string  $current_tab, integer  $total_wp_upgrades, integer  $total_plugin_upgrades, integer  $total_theme_upgrades, integer  $total_translation_upgrades, integer  $total_plugins_outdate, integer  $total_themes_outdate, string  $site_view) 

Renders header tabs

Parameters

boolean $show_language_updates

show language update.

string $current_tab

current tab.

integer $total_wp_upgrades

total WP update.

integer $total_plugin_upgrades

total plugins update.

integer $total_theme_upgrades

total themes update.

integer $total_translation_upgrades

total translation update.

integer $total_plugins_outdate

total plugins outdate.

integer $total_themes_outdate

total theme outdate.

string $site_view

current site view.

render_http_checks()

render_http_checks(object  $websites) 

Renders the HTTP Check html content.

Parameters

object $websites

Child Sites.

activated_primary_backup_plugin()

activated_primary_backup_plugin(mixed  $what, object  $website) : boolean

Cheks which primary backup plugin is being used.

Parameters

mixed $what

Which backup plugin is being use.

object $website

Website array of information.

Returns

boolean —

True|False.

set_continue_update_html_selector()

set_continue_update_html_selector(string  $current_update, boolean  $slug = false) 

Sets the HTML selector to continue updates.

Parameters

string $current_update

current update string.

boolean $slug

Whether to update slug.

get_continue_update_selector()

get_continue_update_selector() : string

Gets the HTML selector to continue updates.

Returns

string —

HTML selector.

render_updates_modal()

render_updates_modal() 

Displays the updates modal window during updates.

mainwp_help_content()

mainwp_help_content() 

MainWP Help Box content. Hook the section help content to the Help Sidebar element.