Skip to main content

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

NameTypeDescription
$allow_legacyboolWhether to accept the previous secret. Default: true only for pre-key Views.
$view\ViewThe View being validated.

Since

  • 3.1.0

Source

Defined in src/View/View.php at line 2497