dozent_rating_field( float $current_rating = 0.0, bool $echo = true )


Parameters

$current_rating

(float) (Optional)

Default value: 0.0

$echo

(bool) (Optional)

Default value: true


Return

(string) Generate star rating field


Source

File: includes/core-functions.php

	function dozent_rating_field( $current_rating = 0.00, $echo = true ){

		$output = '<div class="review-write-star-wrap dozent-mb-3">';
		$output .= dozent_star_rating_generator($current_rating, false);
		$output .= "<input type='hidden' name='rating_value' value='{$current_rating}'>";
		$output .= "</div>";

		if ( $echo ) {
			echo $output;
		}

		return $output;
	}


Changelog

Changelog
Version Description
DozentLMS 1.0.0 Introduced.