---
id: gk-gravitycharts-secret-allow-legacy
title: "Filter - gk/gravitycharts/secret/allow-legacy"
sidebar_label: "gk/gravitycharts/secret/allow-legacy"
---

# Filter: gk/gravitycharts/secret/allow-legacy

Whether to accept a chart's previous secret, from before the per-site key.

By default it is accepted only for charts secured before the key, and only outside post content or in a post a chart editor last saved or no one has changed since.

## Parameters

| Name | Type | Description |
|------|------|-------------|
| $allow_legacy | `bool` | Whether to accept the previous secret. Default: true only in the cases above. |
| $feed | `array` | The chart feed. |

### Since

- $ver$: $ver$

### Source

Defined in `src/Chart_Feed.php` at line 2649

