dozent_discussion( int $lecture_ID, bool $echo = true )
Get the discussion template
Parameters
- $echo
-
(bool) (Optional)
Default value: true
- $lecture_ID
-
(int) (Required)
Return
(mixed|string|void)
Source
File: includes/template-functions.php
function dozent_discussion( $lecture_ID = 0, $echo = true ) { $enable = (bool) dozent_get_option( 'enable_discussion' ); $lecture_ID = dozent_get_post_id( $lecture_ID ); ob_start(); $output = ''; if ( $enable ) { dozent_load_template( 'single.lecture.discussion', compact( 'lecture_ID' ) ); $output = apply_filters( 'dozent.single.lecture.discussion', ob_get_clean(), $lecture_ID ); } if ( $echo ) { echo $output; } return $output; }
Changelog
Version | Description |
---|---|
DozentLMS 1.0.0 | Introduced. |