dozent_stat_box( string $text = '', string|int|mixed $number = '', bool $echo = true )

Dashboard stats box | card which contains a short summery of data.


Description

Using this function, you can print a stat box


Parameters

$text

(string) (Optional) Text of the card

Default value: ''

$number

(string|int|mixed) (Optional) value of the card which will be highlighted

Default value: ''

$echo

(bool) (Optional) the function will be return or echo directly

Default value: true


Return

(mixed|void)


Source

File: includes/template-functions.php

	function dozent_stat_box( $text = '', $number = '', $echo = true ) {

		$html
			= " <div class='dozent-stat-box'>  <p class='dozent-stat-box-text'> {$text} </p>  <p class='dozent-stat-box-number'> {$number} </p> </div> ";

		/**
		 * Filter stat box HTML data
		 *
		 * @param  string  $html  HTML data
		 * @param  string  $text  Text of the card
		 * @param  string|int|mixed  $number  value of the card which will be highlighted
		 */

		$output = apply_filters( 'dozent_stat_box', $html, $text, $number );

		if ( $echo ) {
			echo $output;
		}

		return $output;
	}


Changelog

Changelog
Version Description
DozentLMS 1.0.0 Introduced.