learndash_get_course_lessons_per_page( int $course_id )
Gets the course lessons per page setting.
Description Description
This function will initially source the per_page from the course. But if we are using the default lesson options setting we will use that. Then if the lessons options is not set for some reason we use the default system option ‘posts_per_page’.
Parameters Parameters
- $course_id
-
(Optional) The ID of the course. Default 0.
Return Return
(int) The number of lessons per page or 0.
Source Source
File: includes/course/ld-course-functions.php
Changelog Changelog
Version | Description |
---|---|
2.5.5 | Introduced. |