bp_get_message_notice_text( BP_Messages_Notice $notice = null )
Get the text of the current notice in the loop.
Description Description
Parameters Parameters
- $notice
-
(Optional) The notice object.
Default value: null
Return Return
(string)
Source Source
File: bp-messages/bp-messages-template.php
function bp_get_message_notice_text( $notice = null ) {
global $messages_template;
if ( ! isset( $notice->subject ) ) {
$notice =& $messages_template->thread;
}
/**
* Filters the text of the current notice in the loop.
*
* @since 1.0.0
*
* @param string $message Text for the current notice in the loop.
*/
return apply_filters( 'bp_get_message_notice_text', $notice->message );
}
Changelog Changelog
| Version | Description |
|---|---|
| 5.0.0 | Introduced. |