nouveau_error_template( string $message = '', string $type = '' )
Display supplemental error or feedback messages.
Description
This template handles in page error or feedback messages e.g signup fields ‘Username exists’ type registration field error notices.
Parameters
- $message
-
(Optional) required: the message to display.
Default value: ''
- $type
-
(Optional) the type of error message e.g 'error'.
Default value: ''
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 }
Changelog
Version | Description |
---|---|
BuddyPress 3.0.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.