dozent_get_course_contents( int|object|null $course = null )
Get total course contents in array by course ID
Description
Get all course contents by Course ID
Example usage:
dozent_get_course_contents();
dozent_get_course_contents( $course_ID );
See also
Parameters
- $course
-
(int|object|null) (Optional) Course ID or course or post object
Default value: null
Return
(array|object|null)
Source
File: includes/core-functions.php
function dozent_get_course_contents( $course = null ) { $course = dozent_get_course( $course ); return $course->get_contents(); }
Changelog
Version | Description |
---|---|
DozentLMS 1.0.0 | Introduced. |