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


Top ↑

Return Return

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


Top ↑

Source Source

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


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.