bp_nouveau_dismiss_button_type()
Ouptut the dismiss type.
Description
$type is used to set the data-attr for the button. ‘clear’ is tested for & used to remove cookies, if set, in buddypress-nouveau.js. Currently template_notices(BP) will take $type = ‘clear’ if button set to true.
Source
File: bp-templates/bp-nouveau/includes/template-tags.php
function bp_nouveau_dismiss_button_type() {
$bp_nouveau = bp_nouveau();
$type = 'clear';
if ( ! empty( $bp_nouveau->user_feedback['dismiss'] ) ) {
$type = $bp_nouveau->user_feedback['dismiss'];
}
echo esc_attr( $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.