Browse: Home / Functions /

learndash_user_group_enrolled_to_course

learndash_user_group_enrolled_to_course( int $user_id,  int $course_id )

Checks whether a course can be accessed by the user’s group.


Description #


Parameters #

$user_id

(int) (Required) User ID.

$course_id

(int) (Required) Course ID.


Return #

(boolean) Whether a course can be accessed by the user's group.


Source #

File: includes/ld-groups.php


Changelog #

Changelog
Version Description
2.1.0 Introduced.