bp_nouveau_dismiss_button_type()

Ouptut the dismiss type.


Description 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 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 );
}


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.