Properties

$security_nonces

$security_nonces : 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

Method check_security()

Check security request.

Parameters

string $action

Action to perform.

string $query_arg

Query argument.

Returns

boolean —

true or false

add_action()

add_action(string  $action, string  $callback) 

Method add_action()

Add ajax action.

Parameters

string $action

Action to perform.

string $callback

Callback to perform.

add_security_nonce()

add_security_nonce(string  $action) 

Method add_security_nonce()

Add security nonce.

Parameters

string $action

Action to perform.

get_security_nonces()

get_security_nonces() : self

Return 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.

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.

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.