Skip to content

Commit

Permalink
Accept user login and email in spam and unspam commands (#485)
Browse files Browse the repository at this point in the history
  • Loading branch information
ernilambar authored Mar 7, 2024
1 parent b180a66 commit f93114f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6281,13 +6281,13 @@ wp user set-role <user> [<role>]
Marks one or more users as spam on multisite.

~~~
wp user spam <id>...
wp user spam <user>...
~~~

**OPTIONS**

<id>...
One or more IDs of users to mark as spam.
<user>...
The user login, user email, or user ID of the user(s) to mark as spam.

**EXAMPLES**

Expand Down Expand Up @@ -6466,13 +6466,13 @@ Replaces existing terms on the object.
Removes one or more users from spam on multisite.

~~~
wp user unspam <id>...
wp user unspam <user>...
~~~

**OPTIONS**

<id>...
One or more IDs of users to remove from spam.
<user>...
The user login, user email, or user ID of the user(s) to remove from spam.

**EXAMPLES**

Expand Down
8 changes: 4 additions & 4 deletions src/User_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -1321,8 +1321,8 @@ public static function wp_new_user_notification( $user_id, $password ) {
*
* ## OPTIONS
*
* <id>...
* : One or more IDs of users to mark as spam.
* <user>...
* : The user login, user email, or user ID of the user(s) to mark as spam.
*
* ## EXAMPLES
*
Expand All @@ -1340,8 +1340,8 @@ public function spam( $args ) {
*
* ## OPTIONS
*
* <id>...
* : One or more IDs of users to remove from spam.
* <user>...
* : The user login, user email, or user ID of the user(s) to remove from spam.
*
* ## EXAMPLES
*
Expand Down

0 comments on commit f93114f

Please sign in to comment.