dozent_course_curriculum( int $course_ID, bool $echo = true )
Generate course curriculum
Description
Example usage:
dozent_course_curriculum(); //from the current post id
dozent_course_curriculum( $course_id );
See also
Parameters
- $course_ID
-
(int) (Required)
- $echo
-
(bool) (Optional)
Default value: true
Return
(mixed|void)
Source
File: includes/template-functions.php
function dozent_course_curriculum( $course_ID = 0, $echo = true ) { $course_ID = dozent_get_post_id( $course_ID ); ob_start(); dozent_load_template( 'single.course.curriculum', compact( 'course_ID' ) ); $output = apply_filters( 'dozent.single.course.curriculum', ob_get_clean() ); if ( $echo ) { echo $output; } return $output; }
Changelog
Version | Description |
---|---|
DozentLMS 1.0.0 | Introduced. |