Properties

$subPages

$subPages : array

Public static varable to hold Subpages information.

Type

array

Methods

get_class_name()

get_class_name() : string

Get Class Name

Returns

string —

CLASS

init()

init() 

Method init()

Initiate hooks for the users page.

init_menu()

init_menu() 

Method init_menu()

Add Groups Sub Menu.

init_left_menu()

init_left_menu(array  $subPages = array()) 

Initiates Tags menu.

Parameters

array $subPages

Sub pages array.

render_header()

render_header(string  $shownPage = '') 

Method render_header()

Render Tags page header.

Parameters

string $shownPage

The page slug shown at this moment.

render_footer()

render_footer() 

Method render_footer()

Render Tags page footer. Closes the page container.

get_group_list_content()

get_group_list_content() 

Method get_group_list_content()

Get group list contents.

render_all_groups()

render_all_groups() : string

Method render_all_groups()

Render MainWP Groups Table.

Returns

string —

MainWP Groups Table.

render_groups_menu_element()

render_groups_menu_element() 

Method render_groups_menu_element()

Render the groups menu HTML element.

render_groups_sites_table_element()

render_groups_sites_table_element() 

Method render_groups_sites_table_element()

Render the groups menu HTML element.

rename_group()

rename_group() 

Method rename_group()

Rename the selected group.

delete_group()

delete_group() 

Method delete_group()

Delete the selected group.

check_group_name()

check_group_name(mixed  $groupName, null  $groupId = null) : string

Method check_group_name()

Check if group name already exists if it does add a number to the end of it.

Parameters

mixed $groupName

Given Group Name.

null $groupId

Group ID.

Returns

string —

$groupName Group name + count # if group has bn found.

add_group()

add_group() 

Method add_group()

Add Group.

add_group_sites()

add_group_sites(string  $gname, array  $site_ids, string  $gcolor = '') 

Method add_group_sites()

Add Group sites.

Parameters

string $gname

Group Name.

array $site_ids

Sites IDs.

string $gcolor

Tag color.

mainwp_help_content()

mainwp_help_content() 

Hooks the section help content to the Help Sidebar element.

create_group_item()

create_group_item(array  $group) 

Metod create_group_item()

Group Data Table Row.

Parameters

array $group

Array of group data.