function mainwp_ignoreplugintheme() { $this->secure_request(); if (!isset($_POST['id'])) { die(json_encode(array('error' => 'Invalid request'))); } die(json_encode(array('result' => MainWPRightNow::ignorePluginTheme($_POST['type'], $_POST['slug'], $_POST['name'], $_POST['id'])))); }