function DNUI_ajax_delete_backup() { echo json_encode(DNUI_delete_backup($_POST["delet"])); die; }
/** * Delete one folder backup * @param type $ids * @return type */ function DNUI_delete_backups($ids) { $basePlugin = plugin_dir_path(__FILE__) . '../backup/'; foreach ($ids as $id) { DNUI_delete_backup($id, $basePlugin); } return; }