From f0aea906af6e0e7efcf9ebcce884aacc963601ff Mon Sep 17 00:00:00 2001 From: Osong Agberndifor <38656549+Osong-Michael@users.noreply.github.com> Date: Mon, 29 May 2023 20:04:24 +0100 Subject: [PATCH] PLANET-7148 Form Builder: Enforce data retention policy (#2026) - Updated filter to enforce data retention for 90 days then delete permanently after --- src/GravityFormsExtensions.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/GravityFormsExtensions.php b/src/GravityFormsExtensions.php index af2647a795..91269ebf2c 100644 --- a/src/GravityFormsExtensions.php +++ b/src/GravityFormsExtensions.php @@ -668,6 +668,8 @@ function ($feed) use ($form_id) { public function p4_gf_enable_default_meta_settings(array $meta): array { $meta['personalData']['preventIP'] = true; + $meta['personalData']['retention']['policy'] = 'delete'; + $meta['personalData']['retention']['retain_entries_days'] = 90; return $meta; } }