bp_nouveau_message_markup_wrapper( string $message, string $type )

Provide a convenience function to add markup wrapper for message strings

Description

Parameters

$message

(Required) The message text string

$type

(Required) The message type - 'error, 'info', 'warning', success'

Return

(string)

Source

File: bp-templates/bp-nouveau/includes/groups/functions.php

22
23
24
25
26
27
28
29
30
function bp_nouveau_message_markup_wrapper( $message, $type ) {
    if ( ! $message ) {
        return false;
    }
 
    $message = '<div class=" ' . esc_attr( "bp-feedback {$type}" ) . '"><span class="bp-icon" aria-hidden="true"></span><p>' . esc_html( $message ) . '</p></div>';
 
    return $message;
}

Changelog

Changelog
Version Description
BuddyPress 3.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.