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


Top ↑

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;
	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.20.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.