Filter: gk/gravityview/view/secret/allow-legacy
Whether to accept a View's previous (pre per-site-key) secret.
It is accepted by default only for Views created before this site established its per-site key, so their existing embeds keep working; Views created after that boundary use only the per-site secret. Return true to accept the previous secret for every View during a wider transition window, or false to require the per-site secret everywhere.
Parameters
| Name | Type | Description |
|---|---|---|
| $allow_legacy | bool | Whether to accept the previous secret. Default: true only for pre-key Views. |
| $view | \View | The View being validated. |
Since
- 3.1.0
Source
Defined in src/View/View.php at line 2497