LLMS_Section::get_siblings( string $return = 'sections' )
Get sibling sections
Parameters Parameters
- $return
-
(string) (Optional) Type of return [ids|posts|sections]. Default is
sections.Default value: 'sections'
Return Return
(int[]|WP_Post[]|LLMS_Section[]) Return type depends on value of $return argument.
Source Source
File: includes/models/model.llms.section.php
public function get_siblings( $return = 'sections' ) {
$course = $this->get_course();
return $course->get_sections( $return );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.13.0 | Introduced. |