function mainwp_addwp() { if ($this->check_security('mainwp_addwp', 'security')) { MainWPManageSites::addSite(); } else { die(json_encode(array('response' => 'ERROR Invalid request'))); } }