dozent_course_benefits( int $course_ID, bool $echo = true )
Show course benefits on the course single page
Description
Show course benefits in formatted way, it will return and print HTML block of course benefits
Example usage:
dozent_course_benefits();
dozent_course_benefits( $course_ID );
dozent_course_benefits( $course_ID, false );
See also
Parameters
- $course_ID
-
(int) (Required) Course ID AKA Course Post Type ID
- $echo
-
(bool) (Optional) Should directly print or not
Default value: true
Return
(mixed|void)
Source
File: includes/template-functions.php
function dozent_course_benefits( $course_ID = 0, $echo = true ) { $course_ID = dozent_get_post_id( $course_ID ); $benefits = dozent_get_course_benefits_arr( $course_ID ); ob_start(); dozent_load_template( 'single/course/benefits', compact( 'benefits', 'course_ID' ) ); $output = apply_filters( 'dozent_course_benefits', ob_get_clean() ); if ( $echo ) { echo $output; } return $output; }
Changelog
Version | Description |
---|---|
DozentLMS 1.0.0 | Introduced. |