Properties

$subPages

$subPages : array

Sub pages

Type

array — Sub pages.

$page

$page : string

Current page.

Type

string — Current page.

$sitesTable

$sitesTable : 

Magage Sites table

Type

— Magage Sites table.

$enable_widgets

$enable_widgets : array

Widgets to enable.

Type

array — Widgets to enable.

Methods

get_class_name()

get_class_name() : string

Get Class Name

Returns

string —

CLASS

init()

init() 

Method init()

Initiate Manage Sites.

on_screen_layout_columns()

on_screen_layout_columns(mixed  $columns, mixed  $screen) : array

Method on_screen_layout_columns()

Columns to display.

Parameters

mixed $columns

Columns to display.

mixed $screen

Current page.

Returns

array —

$columns

init_subpages_menu()

init_subpages_menu() 

Initiate sub page menu.

on_load_page()

on_load_page() 

Method on_load_page()

Run on page load.

load_sites_table()

load_sites_table() 

Method load_sites_table()

Load sites table.

on_load_subpages()

on_load_subpages() 

Method on_load_sunpages()

Run on subpage load.

render_header()

render_header(string  $shownPage = '') 

Method render_header()

Render page header.

Parameters

string $shownPage

Current page slug.

render_footer()

render_footer() 

Method render_footer()

Render page footer.

screen_options()

screen_options(mixed  $input) : mixed

Method screen_options()

Create Page Settings button.

Parameters

mixed $input

Page Settings button HTML.

Returns

mixed —

Page Settings button.

render_screen_options()

render_screen_options() 

Method render_screen_options()

Render Page Settings Modal.

ajax_optimize_display_rows()

ajax_optimize_display_rows() 

Method ajax_optimize_display_rows()

Display table rows, optimize for shared hosting or big networks.

render_new_site()

render_new_site() : string

Method render_new_site()

Render add new site page.

Returns

string —

Add new site html.

render_bulk_new_site()

render_bulk_new_site() 

Method render_bulk_new_site()

Render Import Sites - bulk new site modal.

render_updates()

render_updates(mixed  $website) 

Method render_updates()

Render updates.

Parameters

mixed $website

Child Site.

render_email_settings()

render_email_settings(mixed  $website, boolean  $updated, boolean  $updated_templ) 

Method render_email_settings()

Render email settings.

Parameters

mixed $website

Child Site.

boolean $updated

updated settings.

boolean $updated_templ

updated template file.

render_dashboard()

render_dashboard(mixed  $website) 

Method render_dashboard()

Render Manage Sites Dashboard.

Parameters

mixed $website

Child Site.

render_backup_site()

render_backup_site(mixed  $website) 

Method render_backup_site()

Render Manage Sites Backups.

Parameters

mixed $website

Child Site.

render_scan_site()

render_scan_site(mixed  $website) 

Method render_scan_site()

Render Site Hardening.

Parameters

mixed $website

Child Site.

render_all_sites()

render_all_sites() 

Method render_all_sites()

Render manage sites content.

render_edit_site()

render_edit_site(mixed  $websiteid, mixed  $updated) 

Method render_edit_site()

Render edit site.

Parameters

mixed $websiteid

Child Site ID.

mixed $updated

Updated.

on_edit_site()

on_edit_site(object  $website) 

Method on_edit_site()

Render on edit.

Parameters

object $website

The website object.

mainwp_help_content()

mainwp_help_content() 

Hook the section help content to the Help Sidebar element.

update_site_emails_settings_handle()

update_site_emails_settings_handle(mixed  $website) : boolean

Method update_site_emails_settings_handle()

Handle site email settings update.

Parameters

mixed $website

Child Site object.

Returns

boolean —

$updated Updated.

update_site_handle()

update_site_handle(mixed  $website) : boolean

Method update_site_handle()

Handle site update.

Parameters

mixed $website

Child Site object.

Returns

boolean —

$updated Updated.