Browse: Home / Classes / Learndash_WooCommerce /

Learndash_WooCommerce::is_user_enrolled_to_course

Learndash_WooCommerce::is_user_enrolled_to_course( integer $user_id,  integer $course_id )

Check if a user is already enrolled to a course


Description #


Parameters #

$user_id

(integer) (Required) User ID.

$course_id

(integer) (Required) Course ID.


Return #

(boolean) True if enrolled|false otherwise


Source #

File: includes/woocommerce/includes/class-learndash-woocommerce.php


Changelog #

Changelog
Version Description
5.2.0 Introduced.