public function update_item($new_data) { Plugin::instance()->db->save_editor($new_data['id'], $new_data['data']); return true; }