llms_print_notice( string $message, string $notice_type = 'success' )
Prints a single notice
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_print_notice( $message, $notice_type = 'success' ) { if ( 'success' === $notice_type ) { $message = apply_filters( 'lifterlms_add_message', $message ); } llms_get_template( "notices/{$notice_type}.php", array( 'messages' => array( apply_filters( 'lifterlms_add_' . $notice_type, $message ) ), ) ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |