learndash_set_groups_users learndash_set_groups_users( int $group_id, array $group_users_new = array() ) Adds the list of given users to the group. ContentsDescription Parameters Source Changelog Related Uses Used By Description # Parameters # $group_id (int) (Optional) Group ID. Default 0. $group_users_new (array) (Optional) A list of user IDs to add to the group. Default value: array() Source # File: includes/ld-groups.php Changelog # Changelog Version Description 2.1.2 Introduced. Related # Uses # Uses Uses Description includes/ld-groups.php: ld_update_group_access () Updates a user’s group access. includes/ld-groups.php: learndash_get_groups_user_ids () Gets the list of users ids that belong to a group. includes/ld-groups.php: learndash_remove_group_users Fires after removing a user from the group. Used By # Used By Used By Description includes/settings/settings-metaboxes/class-ld-settings-metabox-group-users.php: LearnDash_Settings_Metabox_Group_Users_Settings::save_post_meta_box () Save Settings Metabox
Uses # Uses Uses Description includes/ld-groups.php: ld_update_group_access () Updates a user’s group access. includes/ld-groups.php: learndash_get_groups_user_ids () Gets the list of users ids that belong to a group. includes/ld-groups.php: learndash_remove_group_users Fires after removing a user from the group.
Used By # Used By Used By Description includes/settings/settings-metaboxes/class-ld-settings-metabox-group-users.php: LearnDash_Settings_Metabox_Group_Users_Settings::save_post_meta_box () Save Settings Metabox