getDefaultOptions(); // Preserve DB_VERSION so the restore does not appear as a schema // downgrade to the upgrade engine. $current = $abj404logic->getOptions(true); if (is_array($current) && array_key_exists('DB_VERSION', $current)) { $defaults['DB_VERSION'] = $current['DB_VERSION']; } $abj404logic->updateOptions($defaults); wp_send_json_success(array( 'message' => __('Settings restored to defaults.', '404-solution'), )); } }