\MainWP\DashboardMainWP_Manage_Groups

Class MainWP_Manage_Groups

Summary

Methods
Properties
Constants
get_class_name()
init_menu()
get_group_list_content()
get_website_list_content()
render_all_groups()
rename_group()
delete_group()
check_group_name()
add_group()
get_sites()
update_group()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
create_group_item()
No private properties found
N/A

Methods

get_class_name()

get_class_name() : string

Get Class Name

Returns

string —

CLASS

init_menu()

init_menu() 

Method init_menu()

Add Groups Sub Menu.

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.

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.

get_sites()

get_sites() : mixed

Method get_sites()

Get Child Sites by Group ID.

Returns

mixed —

$websiteIds|ERROR Child Site ID or Error is returned.

create_group_item()

create_group_item(array  $group) 

Metod create_group_item()

Group Data Table Row.

Parameters

array $group

Array of group data.