function delete_version($version, $hole) { DH_Access::delete_by_version($version); $options = get_option('drainhole_options'); if (isset($options['delete_file']) && $options['delete_file'] && file_exists($this->file($hole, $version))) { @unlink($this->file($hole, $version)); } }