learndash_set_users_group_ids

learndash_set_users_group_ids( int $user_id,  array $user_groups_new = array() )

Adds a user to the list of given group IDs.


Description #


Parameters #

$user_id

(int) (Optional) User ID. Default 0.

$user_groups_new

(array) (Optional) An array of group IDs to add a user.

Default value: array()


Source #

File: includes/ld-groups.php