/**
 * Add a new notification
 *
 * @since 3.2
 *
 * @param string $id      ID of the notification to add
 * @param string $message notification message
 * @param string $group   Notification group to add the message into
 * @return void
 */
function wpas_add_notification($id, $message, $group = 'notifications')
{
    $notifications = WPAS()->session->get($group);
    $id = sanitize_text_field($id);
    $message = wp_kses_post($message);
    if (false === $notifications) {
        wpas_set_notifications();
    }
    $notifications[$id] = $message;
    WPAS()->session->add($group, $notifications);
}
/**
 * Set the errors session
 *
 * @since 3.2
 * @return void
 */
function wpas_set_errors()
{
    wpas_set_notifications('errors');
}