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

Update doc for user spam and unspam command #483

Merged
merged 1 commit into from
Mar 1, 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
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6248,7 +6248,7 @@ wp user set-role <user> [<role>]

### wp user spam

Marks one or more users as spam.
Marks one or more users as spam on multisite.

~~~
wp user spam <id>...
Expand All @@ -6261,6 +6261,7 @@ wp user spam <id>...

**EXAMPLES**

# Mark user as spam.
$ wp user spam 123
User 123 marked as spam.
Success: Spammed 1 of 1 users.
Expand Down Expand Up @@ -6432,7 +6433,7 @@ Replaces existing terms on the object.

### wp user unspam

Removes one or more users from spam.
Removes one or more users from spam on multisite.

~~~
wp user unspam <id>...
Expand All @@ -6445,6 +6446,7 @@ wp user unspam <id>...

**EXAMPLES**

# Remove user from spam.
$ wp user unspam 123
User 123 removed from spam.
Success: Unspamed 1 of 1 users.
Expand Down
6 changes: 4 additions & 2 deletions src/User_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -1282,7 +1282,7 @@ public static function wp_new_user_notification( $user_id, $password ) {
}

/**
* Marks one or more users as spam.
* Marks one or more users as spam on multisite.
*
* ## OPTIONS
*
Expand All @@ -1291,6 +1291,7 @@ public static function wp_new_user_notification( $user_id, $password ) {
*
* ## EXAMPLES
*
* # Mark user as spam.
* $ wp user spam 123
* User 123 marked as spam.
* Success: Spammed 1 of 1 users.
Expand All @@ -1300,7 +1301,7 @@ public function spam( $args ) {
}

/**
* Removes one or more users from spam.
* Removes one or more users from spam on multisite.
*
* ## OPTIONS
*
Expand All @@ -1309,6 +1310,7 @@ public function spam( $args ) {
*
* ## EXAMPLES
*
* # Remove user from spam.
* $ wp user unspam 123
* User 123 removed from spam.
* Success: Unspamed 1 of 1 users.
Expand Down