dozent_course_review_modal( $course_ID, bool $echo = true )

Get Course Review Modal


Parameters

$echo

(bool) (Optional)

Default value: true


Return

(mixed|void)


Source

File: includes/template-functions.php

	function dozent_course_review_modal( $course_ID = 0, $echo = true ) {
		$course_ID = dozent_get_post_id( $course_ID );

		ob_start();

		$output = '';

		if ( is_user_logged_in() ) {
			dozent_load_template( 'global.course-review-modal', compact( 'course_ID' ) );
			$output = apply_filters( 'dozent.global.course-review-modal', ob_get_clean(), $course_ID );
		}

		if ( $echo ) {
			echo $output;
		}

		return $output;
	}


Changelog

Changelog
Version Description
DozentLMS 1.0.0 Introduced.