function mainwp_unignorepluginsthemes() { $this->secure_request(); if (!isset($_POST['slug'])) { die(json_encode(array('error' => 'Invalid request'))); } die(json_encode(array('result' => MainWP_Right_Now::unIgnorePluginsThemes($_POST['type'], $_POST['slug'])))); }