Skip to content

Instantly share code, notes, and snippets.

View jetonr's full-sized avatar
🏠
Working from home

Jeton R. jetonr

🏠
Working from home
View GitHub Profile
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