bp_nouveau_message_markup_wrapper( string $message, string $type )

Provide a convenience function to add markup wrapper for message strings

Parameters Parameters


(string) (Required) The message text string


(string) (Required) The message type

  • 'error, 'info', 'warning', success'

Top ↑

Return Return


Source Source

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

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;

Top ↑

Changelog Changelog

Version Description
3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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