Add an `--all` flag to `wp comment delete`
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 35/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- PHP
- Estrellas
- 105
- Forks
- 97
- Merge medio
- 2 h 1 min
- PR fusionados (30 d)
- 12
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de wp-cli/entity-command
-
command:option command:option-update
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
wp-cli/entity-command#230 · 11 comentarios · 1 reacción ·
-
command:post-meta-get command:post-meta-list
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
wp-cli/entity-command#142 · 10 comentarios · 2 reacciones ·
Todos los issues de wp-cli/entity-command
Issues similares
-
sync-en
Dificultad 1/5 1-3 horas Aptitud para principiantes 85/100
-
sync-en
Dificultad 1/5 1-3 horas Aptitud para principiantes 85/100
-
Перевод устарел
Dificultad 1/5 1-3 horas Aptitud para principiantes 78/100
-
[6.x]: "Cannot use object of type stdClass as array" loading Users index (regression of #19182) Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100