Get message object
public get_message ( string $key ) : MC4WP_Form_Message | ||
$key | string | |
Résultat | MC4WP_Form_Message |
/** * Get HTML string for a message, including wrapper element. * * @param string $key * * @return string */ protected function get_message_html($key) { $message = $this->form->get_message($key); $html = sprintf('<div class="mc4wp-alert mc4wp-%s"><p>%s</p></div>', esc_attr($message->type), $message->text); return $html; }