Properties

$subPages

$subPages : array

MainWP Plugins sub-pages.

Type

array — MainWP Plugins Sub Pages.

$pluginsTable

$pluginsTable : mixed

Plugins table.

Type

mixed — Plugins table.

Methods

get_class_name()

get_class_name() : string

Get Class Name.

Returns

string —

CLASS

init()

init() 

Instantiate Hooks.

init_menu()

init_menu() 

Instantiate Main Plugins Menu.

load_page()

load_page() 

Load the Plugins Page.

init_subpages_menu()

init_subpages_menu() 

Instantiate Subpage "tabs".

init_left_menu()

init_left_menu(array  $subPages = array()) 

Instantiate MainWP main menu Subpages menu.

Parameters

array $subPages

Subpages array.

render_header()

render_header(string  $shownPage = '') 

Render MainWP Plugins Page Header.

Parameters

string $shownPage

The page slug shown at this moment.

render_footer()

render_footer() 

Method render_footer()

Render MainWP Plugins Page Footer.

render_search_options()

render_search_options() 

Render MainWP plugins page search options.

render_table()

render_table(mixed  $keyword, mixed  $status, mixed  $groups, mixed  $sites, mixed  $not_criteria, mixed  $clients) : string

Render Plugins Table.

Parameters

mixed $keyword

Search Terms.

mixed $status

active|inactive Whether the plugin is active or inactive.

mixed $groups

Selected Child Site Groups.

mixed $sites

Selected individual Child Sites.

mixed $not_criteria

Show not criteria result.

mixed $clients

Selected Clients.

Returns

string —

Plugin Table.

render_bulk_actions()

render_bulk_actions(mixed  $status) : string

Render Bulk Actions.

Parameters

mixed $status

active|inactive|all.

Returns

string —

Plugin Bulk Actions Menu.

get_manage_view()

get_manage_view(string  $which = 'plugin') : integer

Method get_manage_view().

Get view mode.

Parameters

string $which

plugin|theme.

Returns

integer —

view mode value.

render_select_manage_view()

render_select_manage_view(string  $which = 'plugin') : \MainWP\Dashboard\void.

Method render_select_manage_view().

Handle render view mode selection.

Parameters

string $which

plugin|theme.

Returns

\MainWP\Dashboard\void.

render_manage_per_site_table()

render_manage_per_site_table(array  $sites, array  $pluginsSlug = array(), array  $sitePlugins = array(), array  $pluginsMainWP = array(), array  $muPlugins = array(), array  $pluginsName = array(), array  $pluginsNameSites = array(), array  $pluginsRealVersion = array()) 

Method render_manage_per_site_table()

Render Manage Plugins Table.

Parameters

array $sites

Child Sites array.

array $pluginsSlug

Plugins slug array.

array $sitePlugins

Site plugins array.

array $pluginsMainWP

MainWP plugins array.

array $muPlugins

Must use plugins array.

array $pluginsName

Plugin names array.

array $pluginsNameSites

Plugin names with Sites array.

array $pluginsRealVersion

Latest plugin release version.

render_manage_table()

render_manage_table(array  $sites, array  $pluginsSlug, array  $sitePlugins, array  $pluginsMainWP, array  $muPlugins, array  $pluginsName, array  $pluginsNameSites, array  $pluginsRealVersion) 

Method render_manage_table()

Render Manage Plugins Table.

Parameters

array $sites

Child Sites array.

array $pluginsSlug

Plugins slug array.

array $sitePlugins

Site plugins array.

array $pluginsMainWP

MainWP plugins array.

array $muPlugins

Must use plugins array.

array $pluginsName

Plugin names array.

array $pluginsNameSites

Plugin names with Sites array.

array $pluginsRealVersion

Latest plugin release version.

render_install()

render_install() 

Render Install Subpage.

render_plugins_table()

render_plugins_table() 

Render Install plugins Table.

render_auto_update()

render_auto_update() 

Render Autoupdate SubPage.

render_all_active_html()

render_all_active_html(array  $plugins, array  $trustedPlugins, mixed  $search_status, array  $decodedIgnoredPlugins, array  $trustedPluginsNotes) 

Method render_all_active_html()

Render all active plugins html.

Parameters

array $plugins

Plugins array.

array $trustedPlugins

Trusted plugins array.

mixed $search_status

trust|untrust|ignored.

array $decodedIgnoredPlugins

Decoded ignored plugins array.

array $trustedPluginsNotes

Trusted plugins notes.

render_global_ignored()

render_global_ignored(array  $ignoredPlugins, array  $decodedIgnoredPlugins) 

Method render_global_ignored()

Render Global Ignored plugins list.

Parameters

array $ignoredPlugins

Ignored plugins array.

array $decodedIgnoredPlugins

Decoded ignored plugins array.

render_sites_ignored()

render_sites_ignored(mixed  $cnt, mixed  $websites) : void

Render Per Site Ignored table.

Parameters

mixed $cnt

Plugin count.

mixed $websites

Child Sites.

render_global_ignored_abandoned()

render_global_ignored_abandoned(array  $ignoredPlugins, array  $decodedIgnoredPlugins) 

Method render_global_ignored_abandoned()

Render Global Ignored Abandoned table.

Parameters

array $ignoredPlugins

Ignored plugins array.

array $decodedIgnoredPlugins

Decoded dgnored plugins array.

render_sites_ignored_abandoned()

render_sites_ignored_abandoned(integer  $cnt, object  $websites) 

Method render_sites_ignored_abandoned()

Render Per Site Ignored Abandoned Table.

Parameters

integer $cnt

Plugins count.

object $websites

The websites object.

mainwp_help_content()

mainwp_help_content() 

Hooks the section help content to the Help Sidebar element.