So I've been playing quite a lot with this new extension and it looks awesome ! You've done an awesome job ! :)
So, after some researches in the extension's files, it seems that this arg is empty/missing : $args['source_dir']
Any idea how I can fix that ? Or maybe I've missed something.
It's only for one demo, and I have no idea why ...
Please let me know if you need any extra detail. Here is the code in our hooks.php file :
function woffice_filter_theme_fw_ext_backups_demos($demos) {
$demos_array = array(
'business-demo' => array(
'title' => __('Business Demo', 'woffice'),
'screenshot' => 'https://woffice.io/demos/demo-business.png',
'preview_link' => 'http://alka-web.com/woffice-business/',
),
'community-demo' => array(
'title' => __('Community Demo', 'woffice'),
'screenshot' => 'https://woffice.io/demos/demo-community.png',
'preview_link' => 'https://woffice.io/demo-community/',
),
'school-demo' => array(
'title' => __('School Demo', 'woffice'),
'screenshot' => 'https://woffice.io/demos/demo-school.png',
'preview_link' => 'http://alka-web.com/woffice-school/',
),
);
$download_url = 'https://woffice.io/demos/index.php';
foreach ($demos_array as $id => $data) {
$demo = new FW_Ext_Backups_Demo($id, 'piecemeal', array(
'url' => $download_url,
'file_id' => $id,
));
$demo->set_title($data['title']);
$demo->set_screenshot($data['screenshot']);
$demo->set_preview_link($data['preview_link']);
$demos[ $demo->get_id() ] = $demo;
unset($demo);
}
return $demos;
}
add_filter('fw:ext:backups-demo:demos', 'woffice_filter_theme_fw_ext_backups_demos');
// We don't save the Theme version used / exported
function woffice_filter_fw_ext_backups_db_restore_keep_options($options, $is_full) {
if (!$is_full) {
$options[ 'template' ] = true;
$options[ 'stylesheet' ] = true;
}
return $options;
}
add_filter('fw_ext_backups_db_restore_keep_options', 'woffice_filter_fw_ext_backups_db_restore_keep_options', 10, 2);