Contact form 7 (CF7 – CFDB7 Database Addon ) Submissions Expiry Date
Option for the submissions to expire after a set amount of time after the submission. When the submissions expire, they will be deleted.
1. Install Plugin
Go to wp-admin > plugins > upload plugin zip file and activate it.
2. Find key and form id
Go to wp-admin contact forms > Expiry > copy key
Go to contacts > find the form id
3. Add cronjobs
Go to Cpanel > cronjobs > add new
URL: https://domain.com/wp-json/cfdb7/expire/{key}/{form id}/{days}
We need to add a cronjob once per day.
Example:
0 0 1 * * curl –silent “https://domain.com/wp-json/cfdb7/expire/RBOcfdVlkH9ediOlzuNWVNX6lbgcY0/6/30” > /dev/null 2>&1
It will expire after 30 days (Delete after 30 days)
Unlimited installation license $29