Browse: Home / Functions /


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 #


(int) (Required) User ID.


(int) (Required) Group ID.


(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.