$instance
$instance : mixed
Public static variable to hold the single instance of the class.
Class MainWP_Connect
Manage connection between MainWP Dashboard and the child site.
auth(string $signature, string $func, string $nonce, integer $nossl) : integer|boolean
Method auth()
Connection authentication handler. Verifies that the signature is correct for the specified data using the public key associated with pub_key_id. This must be the public key corresponding to the private key used for signing.
string | $signature | MainWP Dashboard signature. |
string | $func | Function to run. |
string | $nonce | Security nonce. |
integer | $nossl | OpenSSL not availalbe. NoSSL connection required. |
$auth Returns 1 if authenticated, false if authentication fails.
check_login_as(string $alter_login) : boolean
Method check_login_as()
Auto-login alternative user to the child site when the Open WP Admin feature from the MainWP Dashboard is used.
string | $alter_login | Alternative user account to log into. |
Return false will log in as default admin user. Return true will try to login as alternative user.