learndash_get_course_points( int $post_id, int $decimals = 1 )
Retrieves the course completion points setting of a course.
Description #
Parameters #
- $post_id
-
(int) (Optional) Course Step or Course post ID. Default 0.
- $decimals
-
(int) (Optional) Number of decimal places to round.
Default value: 1
Return #
(float|false) Course completion points of a course if it exists, false otherwise.
Source #
Changelog #
Version | Description |
---|---|
4.20.2 | The value is no longer dependent on the course points requirement for enrollment setting. |
2.4.0 | Introduced. |