Browse: Home / Functions /

learndash_get_course_points_enabled

learndash_get_course_points_enabled( int $post_id )

Checks if the course points requirement for enrollment setting is enabled for a course.


Description #


Parameters #

$post_id

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


Return #

(bool) Returns true if the course points requirement for enrollment setting is enabled, otherwise false.


Source #

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


Changelog #

Changelog
Version Description
4.20.2 Add support for the new requirements_for_enrollment setting key.
2.4.0 Introduced.