alerts[] = array( 'message' => $message, 'type' => $type ); } /** * This function shows the alerts. It shows either a success or error message. * * @since 4.4.0 */ public function showAlerts() { $alert_list = ""; foreach ($this->alerts as $alert) { if ($alert['type'] == "success") { $alert_list .= "
".__('Success!', 'quiz-master-next')." ".$alert["message"]."
".__('Error!', 'quiz-master-next')." ".$alert["message"]."