learndash_set_administrators_group_ids

learndash_set_administrators_group_ids( int $user_id,  array $leader_groups_new = array() )

Makes user an administrator of the given group IDs.


Description #


Parameters #

$user_id

(int) (Required) User ID.

$leader_groups_new

(array) (Optional) A list of group ids.

Default value: array()


Return #

(array)


Source #

File: includes/ld-groups.php


Changelog #

Changelog
Version Description
2.2.1 Introduced.