Group_Member::promote( $args,  $assoc_args )

Promote a member to a new status within a group.


Description Description

Top ↑

OPTIONS OPTIONS

–group-id= : Identifier for the group. Accepts either a slug or a numeric ID.

–user-id= : Identifier for the user. Accepts either a user_login or a numeric ID.

Top ↑

–role= : Group role to promote the member. –role= : Group role to promote the member.

options:

Top ↑

EXAMPLES EXAMPLES

$ wp bp group member promote --group-id=3 --user-id=10 --role=admin
Success: Member promoted to new role successfully.

$ wp bp group member promote --group-id=foo --user-id=admin --role=mod
Success: Member promoted to new role successfully.

Source Source

File: cli/src/group-member.php


			

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.