ld_update_leader_group_access( int $user_id, int $group_id, bool $remove_access = false )
Updates the group access for a group leader.
Description #
Parameters #
- $user_id
-
(int) (Required) User ID.
- $group_id
-
(int) (Required) Group ID.
- $remove_access
-
(bool) (Optional) Whether to remove user from the group.
Default value: false
Return #
(bool) True on action success, otherwise false.
Source #
File: includes/ld-groups.php
Changelog #
Version | Description |
---|---|
3.4.0 | Added return boolean. |
2.2.1 | Introduced. |