get_class_name()
get_class_name() : object
Method get_class_name()
Get Class Name.
Class MainWP_UI
select_sites_box(string $type = 'checkbox', boolean $show_group = true, boolean $show_select_all = true, string $class = '', string $style = '', array $selected_websites = array(), array $selected_groups = array(), boolean $enableOfflineSites = false, integer $postId)
Method select_sites_box()
Select sites box.
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 | 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(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.
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(integer $tab_id, boolean $staging_enabled, array $selected_groups, boolean $show_group = true, boolean $show_select_all = true)
Method render_select_sites_header()
Render selected sites header.
integer | $tab_id | Datatab ID. |
boolean | $staging_enabled | True, if in the active plugins list. False, not in the list. |
array | $selected_groups | Selected groups. |
boolean | $show_group | Whether or not to show group, Default: true. |
boolean | $show_select_all | Whether or not to show select all, Default: true. |
render_select_sites(object $websites, string $type, mixed $tab_id, mixed $selected_websites, boolean $enableOfflineSites, mixed $edit_site_id) : void
Method render_select_sites()
object | $websites | Object containing child sites info. |
string | $type | Selector type. |
mixed | $tab_id | Datatab ID. |
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. |
render_select_sites_staging(boolean $staging_enabled, mixed $tab_id, mixed $selected_websites, mixed $edit_site_id, string $type = 'checkbox') : void
Method render_select_sites_staging()
Render selected staging sites.
boolean | $staging_enabled | (bool) True, if in the active plugins list. False, not in the list. |
mixed | $tab_id | Datatab ID. |
mixed | $selected_websites | Selected Child Sites. |
mixed | $edit_site_id | Child Site ID to edit. |
string | $type | Selector type. |
render_select_sites_group(array $groups, mixed $tab_id, mixed $selected_groups, string $type = 'checkbox') : void
Method render_select_sites_group()
Render selected sites group.
array | $groups | Array of groups. |
mixed | $tab_id | Datatab ID. |
mixed | $selected_groups | Selected groups. |
string | $type | Selector type. |
add_widget_box(mixed $id, mixed $callback, null $screen = null, string|null $context = null, null $title = null, string $priority = 'default') : void
Method add_widget_box()
Customize WordPress add_meta_box() function.
mixed | $id | Widget ID parameter. |
mixed | $callback | Callback function. |
null | $screen | Current page. |
string|null | $context | right|null. If 3 columns then = 'middle'. |
null | $title | Widget title. |
string | $priority | high|core|default|low, Default: default. |
do_widget_boxes(mixed $screen, string|null $context = null, string $object = '') : void
Method do_widget_boxes()
Customize WordPress do_meta_boxes() function.
mixed | $screen | Current page. |
string|null | $context | right|null. If 3 columns then = 'middle'. |
string | $object | Empty string. |