Browse: Home / Functions /

learndash_get_course_lessons_per_page

learndash_get_course_lessons_per_page( int $course_id )

Gets the course lessons per page setting.


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 #

$course_id

(int) (Optional) The ID of the course. Default 0.


Return #

(int) The number of lessons per page or 0.


Source #

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


Changelog #

Changelog
Version Description
2.5.5 Introduced.