bp_messages_is_active_notice()
Return whether or not the notice is currently active.
Description
Return
(bool)
Source
File: bp-messages/bp-messages-template.php
function bp_messages_is_active_notice() {
global $messages_template;
$retval = ! empty( $messages_template->thread->is_active )
? true
: false;
/**
* Filters whether or not the notice is currently active.
*
* @since BuddyPress 2.1.0
*
* @param bool $retval Whether or not the notice is currently active.
*/
return apply_filters( 'bp_messages_is_active_notice', $retval );
}
Changelog
| Version | Description |
|---|---|
| BuddyPress 1.6.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.