Skip to content

Commit 2265d64

Browse files
Regenerate README file - 2026-03-02 (#584)
Co-authored-by: Alain Schlesser <alain.schlesser@gmail.com>
1 parent 07eeaf7 commit 2265d64

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7442,15 +7442,25 @@ wp user remove-role <user> [<role>...]
74427442
User ID, user email, or user login.
74437443

74447444
[<role>...]
7445-
Remove the specified role(s) from the user.
7445+
Remove the specified role(s) from the user. If not passed, all roles are
7446+
removed from the user; on multisite, this removes the user from the current
7447+
site/blog.
74467448

74477449
**EXAMPLES**
74487450

74497451
$ wp user remove-role 12 author
7450-
Success: Removed 'author' role for johndoe (12).
7452+
Success: Removed 'author' role from johndoe (12).
74517453

74527454
$ wp user remove-role 12 author editor
7453-
Success: Removed 'author', 'editor' roles for johndoe (12).
7455+
Success: Removed 'author', 'editor' roles from johndoe (12).
7456+
7457+
# On single-site: removes all roles from the user
7458+
$ wp user remove-role 12
7459+
Success: Removed all roles from johndoe (12) on http://example.com.
7460+
7461+
# On multisite: removes the user from the current site/blog
7462+
$ wp user remove-role 12
7463+
Success: Removed johndoe (12) from http://example.com.
74547464

74557465

74567466

0 commit comments

Comments
 (0)