LLMS_Student_Bulk_Enroll::generate_notice( string $type, string $message )
Generates admin notice markup
Parameters Parameters
- $type
-
(string) (Required) Type of notice 'error' or 'success'
- $message
-
(string) (Required) Notice message
Source Source
File: includes/admin/class.llms.student.bulk.enroll.php
public function generate_notice( $type, $message ) { ob_start(); ?> <div class="notice notice-<?php echo $type; ?> is-dismissible"> <p><?php echo $message; ?></p> </div> <?php $notice = ob_get_clean(); $this->admin_notices[] = $notice; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.20.0 | Introduced. |