find file - ajax-actions.php
Delete these rows(4 i think):
function set_cd() { $conn = open_connection(); $st = $conn->prepare('UPDATE settings SET value = "" WHERE name = "purchase_code"'); $st->execute(); }
find file - request.php
Replace there function update_purchase_code() ( all the function) with:
function update_purchase_code() { $message = 'Item Purchase code updated!'; $status = 'success'; update_setting('purchase_code', $_POST['code']); if (isset($_POST['redirect'])) { $_SESSION['message'] = [ 'type' => $status, 'text' => $message, ]; header('Location: '.$_POST['redirect']); } }
Then you can type any code like purchase code in admin panel and wont be deleted after doing some changes. Well Update and plugins wont work but everything else i think yes. Test it 🙂