llms_print_notice( string $message, string $notice_type = 'success' )

Prints a single notice


Parameters Parameters

$message

(string) (Required) [The notice message]

$notice_type

(string) (Optional) [notice type]

Default value: 'success'


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/functions/llms.functions.notice.php

function llms_print_notice( $message, $notice_type = 'success' ) {

	if ( 'success' === $notice_type ) {
		$message = apply_filters( 'lifterlms_add_message', $message );
	}

	llms_get_template(
		"notices/{$notice_type}.php",
		array(
			'messages' => array( apply_filters( 'lifterlms_add_' . $notice_type, $message ) ),
		)
	);
}


Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.