This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var modelimport = new Ai1wm.Import(); | |
var storage = Ai1wm.Util.random(12); | |
var archive_name = 'REPLACE-WITH-ARCHIVE-NAME'; // Upload backup file to wp-content > ai1wm-backups and replace filename here | |
var options = Ai1wm.Util.form('#ai1wm-backups-form').concat({ name: 'storage', value: storage }).concat({ name: 'archive', value: archive_name}); | |
// Set global params | |
modelimport.setParams(options); | |
// Start import |
OlderNewer