dozent_course_includes( int $course_ID, bool $echo = true )
Render course includes materials at the template
Description
Example usage:
dozent_course_includes();
Parameters
- $course_ID
-
(int) (Required)
- $echo
-
(bool) (Optional)
Default value: true
Return
(mixed|void)
Source
File: includes/template-functions.php
function dozent_course_includes( $course_ID = 0, $echo = true ) { $course_ID = dozent_get_post_id( $course_ID ); ob_start(); dozent_load_template( 'single/course/includes-materials', compact( 'course_ID' ) ); $output = apply_filters( 'dozent_course_includes', ob_get_clean() ); if ( $echo ) { echo $output; } return $output; }
Changelog
Version | Description |
---|---|
DozentLMS 1.0.0 | Introduced. |