dozent_notice( null $message = null, string $notice_type = 'success', bool $echo = true )

It will show generated notice from the template file.


Description

Example usage:

dozent_notice();

See also


Parameters

$message

(null) (Optional)

Default value: null

$notice_type

(string) (Optional) success | info | danger

Default value: 'success'

$echo

(bool) (Optional)

Default value: true


Return

(mixed|void)


Source

File: includes/template-functions.php

	function dozent_notice( $message = null, $notice_type = 'success', $echo = true ) {
		$html   = dozent_get_template_html( 'global.notice', compact( 'message', 'notice_type' ) );
		$output = apply_filters( 'dozent_notice', $html, $message, $notice_type );

		if ( ! $echo ) {
			return $output;
		}
		echo $output;
	}


Changelog

Changelog
Version Description
DozentLMS 1.0.0 Introduced.