dozent_course_lead_info( bool $echo = true )

Render course lead information


Description

All the basic necessary course information will be available at this course jumbotron

Example usage:

dozent_course_lead_info();

Parameters

$echo

(bool) (Optional)

Default value: true


Return

(mixed|void)


Source

File: includes/template-functions.php

	function dozent_course_lead_info( $echo = true ) {
		ob_start();

		$course_id = get_the_ID();

		$queryCourse = new WP_Query( array( 'p' => $course_id, 'post_type' => 'dozent_course' ) );

		if ( $queryCourse->have_posts() ) {
			while ( $queryCourse->have_posts() ) {
				$queryCourse->the_post();
				dozent_load_template( 'single.course.lead-info' );
			}
			wp_reset_postdata();
		}

		$output = apply_filters( 'single.course.lead-info', ob_get_clean() );

		if ( ! $echo ) {
			return $output;
		}
		echo $output;
	}


Changelog

Changelog
Version Description
DozentLMS 1.0.0 Introduced.