LLMS_Admin_Notices::add_notice( string $notice_id, string $html_or_options = '', array $options = array() )
Add a notice
Description Description
Saves options to the database to be output later
Parameters Parameters
- $notice_id
 - 
					
(Required) Unique id of the notice.
 - $html_or_options
 - 
					
(Optional) Html content of the notice for short notices that don't need a template or an array of options, html of the notice will be in a template passed as the "template" param of this array.
Default value: ''
 - $options
 - 
					
(Optional) Array of options, when passing html directly via $html_or_options. Notice options should be passed in this array.
Default value: array()
 
Return Return
(void)
Source Source
File: includes/admin/class.llms.admin.notices.php
Changelog Changelog
| Version | Description | 
|---|---|
| 3.3.0 | Added "flash" option. | 
| 3.0.0 | Introduced. |