dozent_price( int $price )

Format the price with a currency symbol.


Parameters

$price

(int) (Required)


Return

(string)


Source

File: includes/core-functions.php

	function dozent_price( $price = 0 ) {

		$formatted_price = '';
		$formated_by     = 'dozent';
		if ( function_exists( 'wc_price' ) ) {

			$formatted_price = wc_price( $price );
			$formated_by     = 'wc';

		} elseif ( function_exists( 'edd_currency_filter' ) ) {

			$formatted_price = edd_currency_filter( edd_format_amount( $price ) );
			$formated_by     = 'edd';

		} else {

			$formatted_price = number_format_i18n( $price );

		}

		/**
		 * Filter the price format
		 *
		 * @param  string  $formatted_price  Price
		 * @param  string  $formated_by  Formatted by
		 */

		return apply_filters( 'dozent_price', $formatted_price, $formated_by );
	}


Changelog

Changelog
Version Description
DozentLMS 1.0.0 Introduced.