Skip to main content

Filter: gk/gravitycalendar/secret/allow-legacy

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

It is the same on every site, so by default it is accepted only for calendars secured before the key, and only outside post content or in a post a calendar editor last saved or no one has changed since.

Parameters​

NameTypeDescription
$allow_legacyboolWhether to accept the previous secret. Default: true only in the cases above.
$feedarrayThe calendar feed.

Since​

  • $ver$: $ver$

Source​

Defined in includes/class-calendar-feed.php at line 7647