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 #
Changelog #
Version | Description |
---|---|
2.4.0 | Introduced. |