bp_nouveau_get_template_message_type()
Get the template notice/feedback message type
Description
Return
(string) The type of the notice. Defaults to error.
Source
File: bp-templates/bp-nouveau/includes/template-tags.php
function bp_nouveau_get_template_message_type() { $bp_nouveau = bp_nouveau(); $type = 'error'; if ( ! empty( $bp_nouveau->template_message['type'] ) ) { $type = $bp_nouveau->template_message['type']; } elseif ( ! empty( $bp_nouveau->user_feedback['type'] ) ) { $type = $bp_nouveau->user_feedback['type']; } return $type; }
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.