Properties

$security_nonces

$security_nonces : string

Protected static variable to hold security nounces.

Type

string — Security nonce.

$security_names

$security_names : string

Protected static variable to hold security nounces.

Type

string — Security nonce.

$instance

$instance : mixed

Private static variable to hold the single instance of the class.

Type

mixed — Default null

Methods

init()

init() : void

Init site actions

Force Extending class to define this method.

secure_request()

secure_request(string  $action = '', string  $query_arg = 'security') 

Method secure_request()

Add security check to request parameter

Parameters

string $action

Action to perform.

string $query_arg

Query argument.

check_security()

check_security(string  $action = -1, string  $query_arg = 'security', boolean  $out_die = true) : boolean

Method check_security()

Check security request.

Parameters

string $action

Action to perform.

string $query_arg

Query argument.

boolean $out_die

return or exit.

Returns

boolean —

true or false

add_action()

add_action(string  $action, string  $callback, integer  $priority = 10, integer  $accepted = 2) 

Method add_action()

Add ajax action.

Parameters

string $action

Action to perform.

string $callback

Callback to perform.

integer $priority

priority aciton.

integer $accepted

number args.

add_action_nonce()

add_action_nonce(string  $action) 

Method add_action_nonce()

Add security nonce.

Parameters

string $action

Action to perform.

create_security_nonces()

create_security_nonces() : self

Create the security nonces.

Returns

self —

$security_nonces.

instance()

instance() : self

Method instance()

Create MainWP Post Site Handler instance.

Returns

self —

$instance MainWP_Post_Site_Handler.

mainwp_group_rename()

mainwp_group_rename() 

Method mainwp_group_rename()

Rename Group.

mainwp_group_delete()

mainwp_group_delete() 

Method mainwp_group_delete()

Delete Group.

mainwp_group_add()

mainwp_group_add() 

Method mainwp_group_add()

Add Group.

ajax_group_sites_add()

ajax_group_sites_add() 

Method ajax_group_sites_add()

Add Group in modal.

mainwp_group_getsites()

mainwp_group_getsites() 

Method mainwp_group_getsites()

Get Child Sites in group.

mainwp_group_updategroup()

mainwp_group_updategroup() 

Method mainwp_group_updategroup()

Update Group.

mainwp_checkwp()

mainwp_checkwp() 

Method mainwp_checkwp()

Check if WP can be added.

mainwp_addwp()

mainwp_addwp() 

Method mainwp_addwp()

Add WP to the database.

get_site_icon()

get_site_icon() 

Method get_site_icon()

Get Child Site Favicon.

check_abandoned()

check_abandoned() 

Method check_abandoned()

Check abandoned plugins or themes.

mainwp_testwp()

mainwp_testwp() 

Method mainwp_testwp()

Test if Child Site can be reached.

mainwp_removesite()

mainwp_removesite() 

Method mainwp_removesite()

Remove a website from MainWP.

mainwp_reconnectwp()

mainwp_reconnectwp() 

Method mainwp_reconnectwp()

Reconnect to Child Site.

mainwp_updatechildsite_value()

mainwp_updatechildsite_value() 

Method mainwp_updatechildsite_value()

Update Child Site value.

mainwp_syncsites()

mainwp_syncsites() 

Method mainwp_syncsites()

Sync Child Sites.

mainwp_checksites()

mainwp_checksites() 

Method mainwp_checksites()

Check Child Sites.

manage_suspend_site()

manage_suspend_site() 

Method mainwp_manage_sites_suspend_site()

Check Child Sites.