Browse: Home / Functions /

learndash_is_user_in_group

learndash_is_user_in_group( int $user_id,  int $group_id )

Checks whether a user is part of the group or not.


Description #


Parameters #

$user_id

(int) (Required) User ID.

$group_id

(int) (Required) Group ID.


Return #

(boolean) Returns true if the user is part of the group otherwise false.


Source #

File: includes/ld-groups.php


Changelog #

Changelog
Version Description
2.1.0 Introduced.