etruel / wpematico

11 stars 9 forks source link

New options for export/import settings. #13

Closed etruel closed 6 months ago

etruel commented 3 years ago

The idea is a new item menu Tools, a page similar to WPeMatico Settings that allow add tabs and sections. There will begin to add some different tools.

Initially we need the utility to export/import/reset the settings as xml, json or encrypted string file. (To discuss the best way). WPeMatico::get_settings() = A function similar to get_campaign(), but to read all the settings and return an array with a filter to integrate all the addons. Export = Follow the same way as export campaign but with simple links in the Tools page. Import = Ask for Confirm() if it will replace all the data. WPeMatico::set_settings() = A function similar to ..........., but that parses and stores all the settings in an array with a filter to integrate all the addons. (needs research on what to do with current settings ) Reset = Replace the current settings to the default state of the first time.