Methods

get_class_name()

get_class_name() : object

Method get_class_name()

Get Class Name.

Returns

object

select_sites_box()

select_sites_box(string  $type = 'checkbox', boolean  $show_group = true, boolean  $show_select_all = true, string  $class_style = '', string  $style = '', array  $selected_websites = array(), array  $selected_groups = array(), boolean  $enableOfflineSites = false, integer  $postId) 

Method select_sites_box()

Select sites box.

Parameters

string $type

Input type, radio.

boolean $show_group

Whether or not to show group, Default: true.

boolean $show_select_all

Whether to show select all.

string $class_style

Default = ''.

string $style

Default = ''.

array $selected_websites

Selected Child Sites.

array $selected_groups

Selected Groups.

boolean $enableOfflineSites

(bool) True, if offline sites is enabled. False if not.

integer $postId

Post Meta ID.

select_sites_box_body()

select_sites_box_body(array  $selected_websites = array(), array  $selected_groups = array(), string  $type = 'checkbox', boolean  $show_group = true, boolean  $show_select_all = true, boolean  $updateQty = false, boolean  $enableOfflineSites = false, integer  $postId) 

Method select_sites_box_body()

Select sites box Body.

Parameters

array $selected_websites

Child Site that are selected.

array $selected_groups

Group that are selected.

string $type

Selector type.

boolean $show_group

Whether or not to show group, Default: true.

boolean $show_select_all

Whether or not to show select all, Default: true.

boolean $updateQty

Whether or not to update quantity, Default = false.

boolean $enableOfflineSites

Whether or not to enable offline sites, Default: true.

integer $postId

Post ID.

render_select_sites_header()

render_select_sites_header(integer  $tab_id, boolean  $staging_enabled, array  $selectedby, boolean  $show_group = true, boolean  $show_client = false) 

Method render_select_sites_header()

Render selected sites header.

Parameters

integer $tab_id

Datatab ID.

boolean $staging_enabled

True, if in the active plugins list. False, not in the list.

array $selectedby

Selected by.

boolean $show_group

Whether or not to show group, Default: true.

boolean $show_client

Whether or not to show client, Default: true.

render_select_sites()

render_select_sites(object  $websites, string  $type, mixed  $selected_websites, boolean  $enableOfflineSites, mixed  $edit_site_id, boolean  $show_select_all, mixed  $add_edit_client_id = false, boolean  $show_select_all_disc = false) : void

Method render_select_sites()

Parameters

object $websites

Object containing child sites info.

string $type

Selector type.

mixed $selected_websites

Selected Child Sites.

boolean $enableOfflineSites

(bool) True, if offline sites is enabled. False if not.

mixed $edit_site_id

Child Site ID to edit.

boolean $show_select_all

Whether or not to show select all, Default: true.

mixed $add_edit_client_id

Show enable sites for client. Default: false, 0: add new client, 0 <: edit client.

boolean $show_select_all_disc

Whether or not to show select all disconnect sites, Default: false.

render_select_sites_staging()

render_select_sites_staging(mixed  $selected_websites, mixed  $edit_site_id, string  $type = 'checkbox') : void

Method render_select_sites_staging()

Render selected staging sites.

Parameters

mixed $selected_websites

Selected Child Sites.

mixed $edit_site_id

Child Site ID to edit.

string $type

Selector type.

render_select_sites_group()

render_select_sites_group(array  $groups, mixed  $selected_groups, string  $type = 'checkbox') : void

Method render_select_sites_group()

Render selected sites group.

Parameters

array $groups

Array of groups.

mixed $selected_groups

Selected groups.

string $type

Selector type.

render_top_header()

render_top_header(array  $params = array()) 

Method render_top_header()

Render top header.

Parameters

array $params

Page parameters.

render_showhide_columns_settings()

render_showhide_columns_settings(array  $cols, array  $show_columns, string  $what) 

Method render_showhide_columns_settings()

Render show/hide columns settings.

Parameters

array $cols

Columns.

array $show_columns

Show Columns.

string $what

what.

render_second_top_header()

render_second_top_header(string  $which = '') : void

Method render_second_top_header()

Render second top header.

Parameters

string $which

Current page.

render_header_actions()

render_header_actions() : mixed

Method render_header_actions()

Render header action buttons, (Sync|Add|Options|Community|User|Updates).

Returns

mixed —

$output Render header action buttons html.

render_page_navigation()

render_page_navigation(array  $subitems = array(), null  $name_caller = null) 

Method render_page_navigation()

Render page navigation.

Parameters

array $subitems

[access, active, style].

null $name_caller

Menu Name.

render_header()

render_header(string  $title = '') : void

Method render_header()

Render page title.

Parameters

string $title

Page title.

render_footer()

render_footer() : void

Method render_footer()

Render page footer.

add_widget_box()

add_widget_box(mixed  $id, mixed  $callback, null  $screen = null, array  $layout = array()) 

Method add_widget_box()

Customize WordPress add_meta_box() function.

Parameters

mixed $id

Widget ID parameter.

mixed $callback

Callback function.

null $screen

Current page.

array $layout

widget layout.

do_widget_boxes()

do_widget_boxes(mixed  $screen_id, array  ...$args) : void

Method do_widget_boxes()

Customize WordPress do_meta_boxes() function.

Parameters

mixed $screen_id

Current page ID.

array $args variadic

Widget callback args.

render_empty_bulk_actions()

render_empty_bulk_actions() 

Method render_empty_bulk_actions()

Render empty bulk actions when drop down is disabled.

render_modal_install_plugin_theme()

render_modal_install_plugin_theme(string  $what = 'plugin') 

Method render_modal_install_plugin_theme()

Render modal window for installing plugins & themes.

Parameters

string $what

Which window to render, plugin|theme.

render_modal_upload_icon()

render_modal_upload_icon() 

Method render_modal_upload_icon()

Render modal window for upload plugins & themes icon.

render_show_all_updates_button()

render_show_all_updates_button() : void

Method render_show_all_updates_button()

Render show all updates button.

render_sorting_icons()

render_sorting_icons() : void

Method render_sorting_icons()

Render sorting up & down icons.

render_modal_edit_notes()

render_modal_edit_notes(string  $what = 'site') : void

Method render_modal_edit_notes()

Render modal window for edit notes.

Parameters

string $what

What modal window to render. Default = site.

render_modal_no_sites_note()

render_modal_no_sites_note() : void

No Sites Modal

Renders modal window for notification when there are no connected sites.

render_screen_options()

render_screen_options(boolean  $setting_page = true) : void

Method render_screen_options()

Render modal window for Page Settings.

Parameters

boolean $setting_page

Default: True. Widgets that you want to hide in the MainWP Overview page.

render_select_mainwp_themes_modal()

render_select_mainwp_themes_modal() : void

Method render_select_mainwp_themes_modal()

Render modal window for mainwp themes selection.

render_install_extensions_promo_modal()

render_install_extensions_promo_modal() 

Method render_install_extensions_promo_modal()

render_empty_element_placeholder()

render_empty_element_placeholder(string  $placeholder = '') 

Method render_empty_element_placeholder()

Renders the content for empty elements.

Parameters

string $placeholder

Placelolder text.