10up / wp-scrubber

BETA: This plugin provides a command-line interface for scrubbing sensitive user and comment data from a WordPress installation.
GNU General Public License v2.0
16 stars 3 forks source link

Confirmation Prompt for 'wp scrub all' and 'wp scrub comments' before deleting the comments. #14

Open ankitguptaindia opened 4 months ago

ankitguptaindia commented 4 months ago

Is your enhancement related to a problem? Please describe.

Feature Description:

Currently, when a user runs the 'wp scrub all' or 'wp scrub comments' command, WP Scrubber initiates the process of scrubbing all comments without informing the user about the irreversible nature of this action. This can lead to accidental deletion of all comments without any warning.

Proposed Enhancement:

To enhance user experience and prevent accidental data loss, I propose adding a confirmation prompt before executing the 'wp scrub all' or 'wp scrub comments' command. This prompt should inform the user about the irreversible nature of the action and require explicit confirmation from the user before proceeding with the deletion process.

Details:

When a user runs the 'wp scrub all' or 'wp scrub comments' command, WP Scrubber should display a message informing the user about the action's irreversible nature. The message should clearly state that executing the command will delete all comments from the site and that this action cannot be undone.

The message should prompt the user to confirm their intention to proceed by typing 'yes'.

Warning: Running this command will delete all comments from the site, and this action cannot be undone.

To proceed, type 'yes'

https://github.com/10up/wp-scrubber/assets/6384299/ade2d2af-0751-43b0-869b-69a738023ff1

Designs

No response

Describe alternatives you've considered

No response

Code of Conduct