Browse: Home / Functions /

learndash_30_get_course_sections

learndash_30_get_course_sections( int|null $course_id = null )

Gets the ld30 theme course sections.


Description #


Parameters #

$course_id

(int|null) (Optional) Course ID.

Default value: null


Return #

(array<int,) object{order: int, ID: int, post_title: string, type: string, steps: int[]}> An array of sections indexed by the first step.


Source #

File: themes/ld30/includes/helpers.php


Changelog #

Changelog
Version Description
3.0.0 Introduced.