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
- $message
-
(string) (Required) Message text / html to display onscreen.
- $type
-
(string) (Optional) Notice type [info|warning|success|error].
Default value: 'info'
Return Return
(void)
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 ) ) { $i++; } $id = $id . $i; self::add_notice( $id, $message, array(
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.3.0 | Introduced. |