Browse: Home / Functions /

learndash_get_course_points_access

learndash_get_course_points_access( int $post_id )

Retrieves the course points required to access a course.


Description #

The value returned from this function is dependent on the course points requirement for enrollment setting. The requirement for enrollment setting must be set to "Course Points".


Parameters #

$post_id

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


Return #

(float|false) Required course points to access a course, false otherwise.


Source #

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


Changelog #

Changelog
Version Description
2.4.0 Introduced.