WP Manifestindependent plugin directory
manifest / forms / cf7-trash-support

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

1stars
0forks

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.zip

Readme

🗑️ 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

  1. Download or copy the file cf7-trash-support.php
  2. Upload it to your WordPress site under: /wp-content/mu-plugins/
  3. It will activate automatically.

Option 2 – Standard Plugin

  1. Upload the file to: /wp-content/plugins/
  2. 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_form post 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.

Read the full README on GitHub →