Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept user login and email in spam and unspam commands #485

Merged
merged 1 commit into from
Mar 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6251,13 +6251,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 @@ -6436,13 +6436,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 @@ -1290,8 +1290,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 @@ -1309,8 +1309,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