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.


Top ↑

Return Return

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


Top ↑

Source Source

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


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.5.5 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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