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

Adds a user to the list of given group IDs.


Description Description


Parameters Parameters

$user_id

(Optional) User ID. Default 0.

$user_groups_new

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

Default value: array()


Top ↑

Source Source

File: includes/ld-groups.php


			

Top ↑

User Contributed Notes User Contributed Notes

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