@@ -335,6 +335,32 @@ public function get( $args, $assoc_args ) {
335
335
* | 29 | 2013-03-14 11:56:08 | Jane Doe |
336
336
* +------------+---------------------+----------------+
337
337
*
338
+ * # List unapproved comments.
339
+ * $ wp comment list --number=3 --status=hold --fields=ID,comment_date,comment_author
340
+ * +------------+---------------------+----------------+
341
+ * | comment_ID | comment_date | comment_author |
342
+ * +------------+---------------------+----------------+
343
+ * | 8 | 2023-11-10 13:13:06 | John Doe |
344
+ * | 7 | 2023-11-10 13:09:55 | Mr WordPress |
345
+ * | 9 | 2023-11-10 11:22:31 | Jane Doe |
346
+ * +------------+---------------------+----------------+
347
+ *
348
+ * # List comments marked as spam.
349
+ * $ wp comment list --status=spam --fields=ID,comment_date,comment_author
350
+ * +------------+---------------------+----------------+
351
+ * | comment_ID | comment_date | comment_author |
352
+ * +------------+---------------------+----------------+
353
+ * | 2 | 2023-11-10 11:22:31 | Jane Doe |
354
+ * +------------+---------------------+----------------+
355
+ *
356
+ * # List comments in trash.
357
+ * $ wp comment list --status=trash --fields=ID,comment_date,comment_author
358
+ * +------------+---------------------+----------------+
359
+ * | comment_ID | comment_date | comment_author |
360
+ * +------------+---------------------+----------------+
361
+ * | 3 | 2023-11-10 11:22:31 | John Doe |
362
+ * +------------+---------------------+----------------+
363
+ *
338
364
* @subcommand list
339
365
*/
340
366
public function list_ ( $ args , $ assoc_args ) {
0 commit comments