File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments