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

Stores notice in llms_notices session


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_add_notice( $message, $notice_type = 'success' ) {

	$notices = LLMS()->session->get( 'llms_notices', array() );

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

	$notices[ $notice_type ][] = apply_filters( 'lifterlms_add_' . $notice_type, $message );

	LLMS()->session->set( 'llms_notices', $notices );

}


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.