\MainWP\DashboardMainWP_Manage_Sites_Handler

Class MainWP_Manage_Sites_Handler

Summary

Methods
Properties
Constants
get_class_name()
check_site()
reconnect_site()
add_site()
rest_api_add_site()
apply_plugin_settings()
save_note()
remove_site()
remove_website()
update_child_site_value()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

get_class_name()

get_class_name() : string

Get Class Name

Returns

string —

CLASS

check_site()

check_site() : mixed

Method check_site()

Check to add site.

Returns

mixed —

send json encode data

reconnect_site()

reconnect_site() 

Method reconnect_site()

Try to reconnect to Child Site.

Throws

\Exception

Error message.

add_site()

add_site() 

Method add_site()

Add new Child Site.

rest_api_add_site()

rest_api_add_site(array  $data, array  $output = array()) : mixed

Method rest_api_add_site().

Rest API add website.

Parameters

array $data

fields array.

array $output

Output array.

$data fields. 'url'. 'name'. 'admin'. 'uniqueid'. 'ssl_verify'. 'force_use_ipv4'. 'ssl_version'. 'http_user'. 'http_pass'. 'groupids'.

Returns

mixed —

Results.

apply_plugin_settings()

apply_plugin_settings() 

Method apply_plugin_settings()

Apply plugin settings.

save_note()

save_note() 

Method save_note()

Save Child Site Note.

remove_site()

remove_site() 

Method remove_site()

Try to remove Child Site.

remove_website()

remove_website(object|integer  $site) : mixed|false

Method handle remove_site()

Try to remove Child Site.

Parameters

object|integer $site

object or Child site ID.

Throws

\Exception

Error message.

Returns

mixed|false —

result

update_child_site_value()

update_child_site_value() 

Method update_child_site_value()

Update Child Site ID.