🍪 Lightweight, user-friendly and customizable cookie consent banner to help you comply with the EU GDPR cookie law and CCPA regulations.
GNU General Public License v2.0
45
stars
2
forks
source link
Export/Import/Reset Settings #10
Closed
over-engineer closed 1 year ago
It’d be quite convenient to have the ability to export, import, and reset the settings of the plugin.
This feature would be particularly useful if you need to apply the same settings across multiple WordPress installations.
We’ll introduce three new buttons in the UI:
“Export Settings” button, which exports the settings to a JSON file.
“Import Settings” button, which imports the settings from the JSON file.
“Reset Settings” button, which completely deletes the
pressidium_cookie_consent_settings
option from the WordPress database.A few key points to keep in mind:
Both importing and resetting should immediately update the UI to reflect any changes.
If there are unsaved changes, clicking on “Export Settings” should display a warning indicating that those changes won’t be included in the JSON file.
When clicking on “Reset Settings” a confirmation should appear, clearly stating that this action is irreversible.