Add an `--all` flag to `wp comment delete`
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 35/100
Piste de recherche
Start at the wp comment delete entry point and compare its behavior with wp plugin delete --all, wp theme delete --all, and wp site empty. Clarify the confirmation and --yes requirements before implementing; done means wp comment delete --all removes all comments safely, with the intended non-interactive behavior covered by tests.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Feature Request
- Yes, I reviewed the contribution guidelines.
Describe your use case and the problem you are facing
A website under my purview had hundreds of thousands of spam comments. It would be nice to be able to remove them in one fell swoop without having to resort to database queries (truncate wp_comments; truncate wp_commentmeta;).
Describe the solution you'd like
I'd like to add a flag to the wp comment delete subcommand:
wp comment delete --all
This may have a confirmation prompt along the lines of "Are you sure you want to delete XXXXX comments? (Y/n)" There might also be a "--yes" option for non-interactive use:
wp comment delete --all --yes
The addition of the "--all" flag would mirror similar-ish flags for the wp plugin delete --all and wp theme delete --all commands.
I'm aware that the wp site empty command also removes all comments, but this is a little bit different.
I'd be happy to take a stab at adding this modification, if approved.
- Langage dominant
- PHP
- Étoiles
- 105
- Forks
- 97
- Merge moyen
- 1 h 17 min
- PR mergées (30 j)
- 6
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de wp-cli/entity-command
-
command:option command:option-update
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
wp-cli/entity-command#230 · 11 commentaires · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
-
command:post-meta-get command:post-meta-list
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
wp-cli/entity-command#142 · 10 commentaires · 2 réactions ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de wp-cli/entity-command
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
thephpleague/commonmark#1159 ·
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
awslabs/aidlc-workflows#1879 ·
Les mainteneurs répondent en général sous 1 jour
-
[Bug] The PHP file that lists DNS records truncates records to 12 characters?Peut-être pris @sahsanu l’a pris aujourd’hui. Ouvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
hestiacp/hestiacp#5769 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
bug customer-reported
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
MagnaCapax/PMSS#1011 ·
Les mainteneurs répondent en général sous 5 jours
-
Talk Review
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
socallinuxexpo/scale-drupal#351 ·