dozent_course_price_html( null $course = null, bool $echo = true )

Get the course price in HTML format


Description

Example usage:

//In template within course loop
dozent_course_price_html();

See also


Parameters

$course

(null) (Optional) Course comes from the loop.

Default value: null

$echo

(bool) (Optional)

Default value: true


Return

(mixed|void)


Source

File: includes/template-functions.php

	function dozent_course_price_html( $course = null, $echo = true ) {

		$price = dozent_course_price( $course );

		ob_start();

		dozent_load_template( 'single/course/price', compact( 'price' ) );

		/**
		 * Filter the course price HTML
		 *
		 * @since DozentLMS 1.0.0
		 */

		$output = apply_filters( 'single/course/price_html', ob_get_clean(), $course );

		if ( $echo ) {
			echo $output;
		}

		return $output;
	}


Changelog

Changelog
Version Description
DozentLMS 1.0.0 Introduced.