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 Description


Parameters Parameters

$post_id

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

$user_id

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


Top ↑

Return Return

(boolean) Returns true if the prerequisites are completed.


Top ↑

Source Source

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


			

Top ↑

Changelog Changelog

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

Top ↑

User Contributed Notes User Contributed Notes

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