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


Description Description


Parameters Parameters

$message

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

$type

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

Default value: 'info'


Top ↑

Return Return

(void)


Top ↑

Source Source

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

	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 ) ) {
			$i++;
		}

		$id = $id . $i;

		self::add_notice( $id, $message, array(
			'dismissible' => false,
			'flash' => true,
			'type' => $type,
		) );

	}

Top ↑

Changelog 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.





Permalink: