dozent_flash_message( bool $echo = true )
Generate formatted flash data
Description
Generate and show flash data in HTML markup using dozent_notice(); function
Example usage:
dozent_flash_message();
See also
Parameters
- $echo
-
(bool) (Optional)
Default value: true
Return
(mixed|void)
Source
File: includes/core-functions.php
function dozent_flash_message( $echo = true ) { $flash_message = dozent_get_flashdata(); $type = dozent_get_flashdata( 'type' ); $output = ''; if ( ! empty( $flash_message ) ) { ob_start(); dozent_notice( $flash_message, $type ); $output = ob_get_clean(); } $output = apply_filters( 'dozent_flash_message', $output, $type ); if ( $output ) { echo $output; } return $output; }
Changelog
Version | Description |
---|---|
DozentLMS 1.0.0 | Introduced. |