From e68e316de27b81ac6cc1e00c29e76cd7ced2b965 Mon Sep 17 00:00:00 2001 From: Nilambar Sharma Date: Tue, 5 Mar 2024 12:43:34 +0545 Subject: [PATCH] Accept user login and email in spam and unspam commands --- README.md | 12 ++++++------ src/User_Command.php | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 108bdfab..45d18fa3 100644 --- a/README.md +++ b/README.md @@ -6251,13 +6251,13 @@ wp user set-role [] Marks one or more users as spam on multisite. ~~~ -wp user spam ... +wp user spam ... ~~~ **OPTIONS** - ... - One or more IDs of users to mark as spam. + ... + The user login, user email, or user ID of the user(s) to mark as spam. **EXAMPLES** @@ -6436,13 +6436,13 @@ Replaces existing terms on the object. Removes one or more users from spam on multisite. ~~~ -wp user unspam ... +wp user unspam ... ~~~ **OPTIONS** - ... - One or more IDs of users to remove from spam. + ... + The user login, user email, or user ID of the user(s) to remove from spam. **EXAMPLES** diff --git a/src/User_Command.php b/src/User_Command.php index b03c984c..385f4ad1 100644 --- a/src/User_Command.php +++ b/src/User_Command.php @@ -1290,8 +1290,8 @@ public static function wp_new_user_notification( $user_id, $password ) { * * ## OPTIONS * - * ... - * : One or more IDs of users to mark as spam. + * ... + * : The user login, user email, or user ID of the user(s) to mark as spam. * * ## EXAMPLES * @@ -1309,8 +1309,8 @@ public function spam( $args ) { * * ## OPTIONS * - * ... - * : One or more IDs of users to remove from spam. + * ... + * : The user login, user email, or user ID of the user(s) to remove from spam. * * ## EXAMPLES *