Browse: Home / Functions /

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.


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.