---
id: gk-foundation-secure-download-history-length
title: "Filter - gk/foundation/secure-download/history-length"
sidebar_label: "gk/foundation/secure-download/history-length"
tags:
  - "1.3.0"
---

# Filter: gk/foundation/secure-download/history-length

Filters the maximum number of history entries to keep per token.

## Parameters

| Name | Type | Description |
|------|------|-------------|
| $max_history | `int` | Maximum number of history entries to keep. Default 100. |
| $token_id | `string` | The token ID for the download. |
| $token_data | `array` | The full token data array. |

### Since

- 1.3.0

### Source

Defined in `Components/SecureDownload.php` at line 1414

