nouveau_error_template( string $message = '', string $type = '' )

Display supplemental error or feedback messages.


Description Description

This template handles in page error or feedback messages e.g signup fields ‘Username exists’ type registration field error notices.


Top ↑

Parameters Parameters

$message

(string) (Optional) required: the message to display.

Default value: ''

$type

(string) (Optional) the type of error message e.g 'error'.

Default value: ''


Source Source

File: bp-templates/bp-nouveau/includes/template-tags.php

function nouveau_error_template( $message = '', $type = '' ) {
	if ( ! $message ) {
		return;
	}

	$type = ( $type ) ? $type : 'error';
	?>

	<div class="<?php echo esc_attr( 'bp-messages bp-feedback ' . $type ); ?>">
		<span class="bp-icon" aria-hidden="true"></span>
		<p><?php echo esc_html( $message ); ?></p>
	</div>

	<?php
}


Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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