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'
Return Return
(void)
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 ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |