Add an `--all` flag to `wp comment delete`
まだ誰も着手していません。
評価
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- PHP
- スター
- 105
- フォーク
- 97
- 平均マージ
- 2時間 1分
- マージ済み PR(30日)
- 12
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
wp-cli/entity-command のほかの issue
-
command:option command:option-update
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
wp-cli/entity-command#230 · コメント 11 件 · リアクション 1 件 ·
-
command:post-meta-get command:post-meta-list
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
wp-cli/entity-command#142 · コメント 10 件 · リアクション 2 件 ·
wp-cli/entity-command の issue をすべて見る
似ている issue
-
sync-en
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
-
sync-en
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
-
Перевод устарел
難易度 1/5 1〜3時間 初心者へのやさしさ 78/100
-
[6.x]: "Cannot use object of type stdClass as array" loading Users index (regression of #19182) オープン
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100