learndash_is_user_in_group( int $user_id, int $group_id )

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


Description Description


Parameters Parameters

$user_id

(Required) User ID.

$group_id

(Required) Group ID.


Top ↑

Return Return

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


Top ↑

Source Source

File: includes/ld-groups.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.