\MainWP\DashboardMainWP_Updates_Overview

Class MainWP_Updates_Overview

Summary

Methods
Properties
Constants
get_class_name()
init()
plugins_api()
get_name()
render()
render_sites()
render_total_update()
render_wordpress_update()
render_plugins_update()
render_themes_update()
render_language_update()
render_abandoned_plugins()
render_abandoned_themes()
render_global_update()
render_bottom()
dismiss_sync_errors()
check_backups()
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() : string

Method get_class_name()

Get Class Name

Returns

string —

CLASS Class Name.

init()

init() 

Method init()

Add plugins api filter.

plugins_api()

plugins_api(mixed  $default_value, mixed  $action, mixed  $args) : mixed

Method plugins_api()

Grab Child Sites update status & build widget.

Parameters

mixed $default_value

Default.

mixed $action

Action.

mixed $args

Slug.

Returns

mixed —

$default|$res

get_name()

get_name() 

Method get_name()

Define Widget Title.

render()

render() 

Method render()

Check if $_GET['dashboard'] then run render_sites().

render_total_update()

render_total_update(integer  $total_upgrades, string  $lastSyncMsg,   $can_total_update, integer  $limit_updates_all) 

Render total update.

Parameters

integer $total_upgrades

number of update.

string $lastSyncMsg

last sync info.

$can_total_update
integer $limit_updates_all

limit number of update per request, 0 is no limit.

render_wordpress_update()

render_wordpress_update(boolean  $user_can_update_wordpress, integer  $total_wp_upgrades, boolean  $globalView, integer  $current_wpid) 

Render WordPress update details.

Parameters

boolean $user_can_update_wordpress

Permission to update WordPress.

integer $total_wp_upgrades

Total number of WordPress update.

boolean $globalView

Global view or not.

integer $current_wpid

Current site ID.

render_plugins_update()

render_plugins_update(  $user_can_update_plugins, integer  $total_plugin_upgrades,   $globalView, integer  $current_wpid) 

Render Plugins update detail.

Parameters

$user_can_update_plugins
integer $total_plugin_upgrades

total number of update.

$globalView
integer $current_wpid

current site id.

render_themes_update()

render_themes_update(  $user_can_update_themes, integer  $total_theme_upgrades,   $globalView, integer  $current_wpid) 

Render Themes update detail.

Parameters

$user_can_update_themes
integer $total_theme_upgrades

total number of update.

$globalView
integer $current_wpid

current site id.

render_language_update()

render_language_update(boolean  $user_can_update_translation, integer  $total_translation_upgrades, boolean  $globalView, integer  $current_wpid) 

Render language update details.

Parameters

boolean $user_can_update_translation

Permission to update.

integer $total_translation_upgrades

Total number of update.

boolean $globalView

Global view or not.

integer $current_wpid

Current site id.

render_abandoned_plugins()

render_abandoned_plugins(integer  $total_plugins_outdate, boolean  $globalView, integer  $current_wpid) 

Render abandoned plugins detail.

Parameters

integer $total_plugins_outdate

total number of update.

boolean $globalView

global view or not.

integer $current_wpid

current site id.

render_abandoned_themes()

render_abandoned_themes(integer  $total_themes_outdate, boolean  $globalView, integer  $current_wpid) 

Render abandoned themes detail.

Parameters

integer $total_themes_outdate

Total number of update.

boolean $globalView

global View or not.

integer $current_wpid

Current site ID.

render_global_update()

render_global_update(boolean  $user_can_update_wordpress, integer  $total_wp_upgrades, array  $all_wp_updates, boolean  $user_can_update_plugins, integer  $total_plugin_upgrades, array  $all_plugins_updates, boolean  $user_can_update_themes, integer  $total_theme_upgrades, mixed  $all_themes_updates, mixed  $mainwp_show_language_updates, boolean  $user_can_update_translation, integer  $total_translation_upgrades, mixed  $all_translations_updates) 

Method render_global_update()

Render global updates.

Parameters

boolean $user_can_update_wordpress

Permission to update WordPress.

integer $total_wp_upgrades

Total WordPress update.

array $all_wp_updates

All WordPress update list.

boolean $user_can_update_plugins

permission to update plugings.

integer $total_plugin_upgrades

total WordPress update.

array $all_plugins_updates

all WordPress update list.

boolean $user_can_update_themes

permission to update themes.

integer $total_theme_upgrades

total themes update.

mixed $all_themes_updates

all themes update list.

mixed $mainwp_show_language_updates

MainWP Language Updates.

boolean $user_can_update_translation

permission to update languages.

integer $total_translation_upgrades

total WordPress update.

mixed $all_translations_updates

all transations update list.

render_bottom()

render_bottom(object  $websites, boolean  $globalView) 

Render bottom of widget.

Parameters

object $websites

Object containing child sites info.

boolean $globalView

Whether it's global or individual site view.

dismiss_sync_errors()

dismiss_sync_errors(boolean  $dismiss = true) : boolean

Method dismiss_sync_errors()

Parameters

boolean $dismiss

true|false.

Returns

boolean —

true