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(string  $shownPage) 

Method render_footer()

Render MainWP Plugins Page Footer.

Parameters

string $shownPage

The page slug shown at this moment.

render_search_options()

render_search_options() 

Render MainWP plugins page search options.

render_bulk_actions()

render_bulk_actions(mixed  $status) : string

Render Bulk Actions.

Parameters

mixed $status

active|inactive|all.

Returns

string —

Plugin Bulk Actions Menu.

render_manage_table()

render_manage_table(array  $sites, array  $plugins, array  $sitePlugins, array  $pluginsMainWP, array  $muPlugins, array  $pluginsName, array  $pluginsVersion, array  $pluginsRealVersion) 

Method render_manage_table()

Render Manage Plugins Table.

Parameters

array $sites

Child Sites array.

array $plugins

Plugins array.

array $sitePlugins

Site plugins array.

array $pluginsMainWP

MainWP plugins array.

array $muPlugins

Must use plugins array.

array $pluginsName

Plugin names array.

array $pluginsVersion

Installed plugins versions.

array $pluginsRealVersion

Latest plugin release version.

render_install()

render_install() 

Render Install Subpage.

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.