learndash_get_course_points

learndash_get_course_points( int $post_id,  int $decimals = 1 )

Gets the course points for a given course ID.


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 #

(int|false) Returns false if the course points are disabled otherwise returns course points.


Source #

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


Changelog #

Changelog
Version Description
2.4.0 Introduced.