Contact Form 7 – Trash Support
Enables Trash for Contact Form 7 forms, preventing immediate permanent deletion.
by Gabriele Piccinnu · github.com/gabrielepiccinnu/cf7-trash-support
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/gabrielepiccinnu/cf7-trash-support/archive/refs/heads/main.zipReadme
🗑️ Contact Form 7 – Trash & Restore Support
A lightweight WordPress plugin that enables the Trash feature for Contact Form 7 forms (wpcf7_contact_form), preventing them from being permanently deleted by mistake
By default, Contact Form 7 immediately deletes forms without sending them to the Trash
This plugin changes that behavior so you can safely restore accidentally deleted forms
⚙️ Features
- Adds Trash & Restore menu for easier management
- Works automatically — no configuration required
📦 Installation
Option 1 – MU Plugin
- Download or copy the file
cf7-trash-support.php - Upload it to your WordPress site under: /wp-content/mu-plugins/
- It will activate automatically.
Option 2 – Standard Plugin
- Upload the file to: /wp-content/plugins/
- Go to WordPress Admin → Plugins and activate Contact Form 7 – Trash Support
🧩 Usage
Once activated:
- When deleting a Contact Form 7 form, it will now be moved to Trash instead of being permanently removed
- You can restore or permanently delete the form later from the Trash, just like posts or pages
🧑💻 Author
Gabriele Piccinnu
LinkedIn · Email
📜 License
This project is licensed under the GPL-2.0+ License.
🧠 Notes
- This plugin does not modify Contact Form 7’s UI.
- It simply adjusts the internal behavior of the
wpcf7_contact_formpost type. - Fully compatible with WordPress 6.7+ and PHP 7.4+.
⚡ Tip: Always export your forms before major updates.
This plugin helps prevent accidental deletions, but regular backups are still recommended.