コード例 #1
0
function DNUI_ajax_delete_backup()
{
    echo json_encode(DNUI_delete_backup($_POST["delet"]));
    die;
}
コード例 #2
0
/**
 * 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;
}