LLMS_Lesson::get_next_lesson()
Get next lesson ID
Return Return
(false|int) ID of the next lesson, if any, false
otherwise.
Source Source
File: includes/models/model.llms.lesson.php
public function get_next_lesson() { return $this->get_sibling( 'next' ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
4.4.2 | Use a numeric comparison for the previous position meta query. |
4.4.0 | Improve query so that unpublished siblings do not break expected results. |
4.10.2 | Refactor to use helper method get_sibling() . |
3.24.0 | |
1.0.0 | Introduced. |