learndash_is_course_prerequities_completed

learndash_is_course_prerequities_completed( int $post_id,  int $user_id )

Checks if the user’s course prerequisites are completed for a given course.


Description #


Parameters #

$post_id

(int) (Optional) The ID of the course. Default 0.

$user_id

(int) (Optional) The ID of the user. Default 0.


Return #

(boolean) Returns true if the prerequisites are completed.


Source #

File: includes/course/ld-course-functions.php


Changelog #

Changelog
Version Description
3.2.3 Added $user_id parameter.
2.1.0 Introduced.