bp_get_message_notice_subject( BP_Messages_Notice $notice = null )

Get the subject of the current notice in the loop.


Description Description


Parameters Parameters

$notice

(Optional) The notice object.

Default value: null


Top ↑

Return Return

(string)


Top ↑

Source Source

File: bp-messages/bp-messages-template.php

	function bp_get_message_notice_subject( $notice = null ) {
		global $messages_template;

		if ( ! isset( $notice->subject ) ) {
			$notice =& $messages_template->thread;
		}

		/**
		 * Filters the subject of the current notice in the loop.
		 *
		 * @since 1.0.0
		 *
		 * @param string $subject Subject of the current notice in the loop.
		 */
		return apply_filters( 'bp_get_message_notice_subject', $notice->subject );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
5.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.