Browse: Home / Functions /

ld_update_group_access

ld_update_group_access( int $user_id,  int $group_id,  boolean $remove = false )

Updates a user’s group access.


Description #


Parameters #

$user_id

(int) (Required) User ID.

$group_id

(int) (Required) Group ID.

$remove

(boolean) (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 #

Changelog
Version Description
3.4.0 Added return boolean.
2.1.0 Introduced.