learndash_get_course_points( int $post_id, int $decimals = 1 )
Gets the course points for a given course ID.
Description Description
Parameters Parameters
- $post_id
-
(Optional) Course Step or Course post ID. Default 0.
- $decimals
-
(Optional) Number of decimal places to round.
Default value: 1
Return Return
(int|false) Returns false if the course points are disabled otherwise returns course points.
Source Source
File: includes/course/ld-course-functions.php
Changelog Changelog
Version | Description |
---|---|
2.4.0 | Introduced. |