Various tools for becoming GDPR complaint
When the plugin is first installed a key-pair is automatically generated. Follow the instructions and add the required defines to wp-config.php
define('GENERO_GDPR_ENCRYPT_ENABLED', true);
define('GENERO_GDPR_PUBLIC_KEY', $root_dir . '/genero-gdpr.public.key');
If the key-pair wasn't saved you can manually generate a new key-pair by running composer run generate-keys
in the plugin directory. Move the generated genero-gdpr.public.key
to place and add it to wp-config.php
.
WARNING! If you lose the private key and have encryption enabled it will be impossible to recover the data.
// Change the default expiration time of gravityform submissions
add_filter('wp-genero-gdpr/expire-submissions/default_expiration_time', function ($time) {
return '3 months';
});
// Override the expiration time of gravityform submissions
add_filter('wp-genero-gdpr/expire-submissions/expiration_time', function ($time) {
return '1 day';
});
// Change the amount of submissions that are deleted at a time
add_filter('wp-genero-gdpr/expire-submissions/pager', function ($pager) {
return 50;
});
Install dependencies
composer install
Generate a new key-pair
composer run generate-keys