From f93114fac6ec1e5bef8df63cdc0d877b12bdacc6 Mon Sep 17 00:00:00 2001 From: Nilambar Sharma Date: Thu, 7 Mar 2024 12:37:23 +0545 Subject: [PATCH] Accept user login and email in spam and unspam commands (#485) --- README.md | 12 ++++++------ src/User_Command.php | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 362a8b5e..32106dd9 100644 --- a/README.md +++ b/README.md @@ -6281,13 +6281,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** @@ -6466,13 +6466,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 666ec18a..0fe24d75 100644 --- a/src/User_Command.php +++ b/src/User_Command.php @@ -1321,8 +1321,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 * @@ -1340,8 +1340,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 *