LLMS_Admin_Notices::flash_notice( string $message, string $type = 'info' )

Flash a notice on screen, isn’t saved and is automatically deleted after being displayed

Parameters Parameters


(string) (Required) Message text / html to display onscreen.


(string) (Optional) Notice type [info|warning|success|error].

Default value: 'info'

Top ↑

Return Return


Top ↑

Source Source

File: includes/admin/class.llms.admin.notices.php

	 * @since 3.3.0
	 * @param string $message Message text / html to display onscreen.
	 * @param string $type    Notice type [info|warning|success|error].
	 * @return void
	public static function flash_notice( $message, $type = 'info' ) {

		$id = 'llms-flash-notice-';
		$i  = 0;

		// Increment the notice id so we can flash multiple notices on screen in one load if necessary.
		while ( self::has_notice( $id . $i ) ) {

		$id = $id . $i;


Top ↑

Changelog Changelog

Version Description
3.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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