BP_Notifications_Template::the_notification()

Set up the current notification inside the loop.


Description Description

Used by bp_the_notification() to set up the current notification data while looping, so that template tags used during that iteration make reference to the current notification.

See also See also


Top ↑

Source Source

File: bp-notifications/classes/class-bp-notifications-template.php

	public function the_notification() {
		$this->in_the_loop  = true;
		$this->notification = $this->next_notification();

		// Loop has just started.
		if ( 0 === $this->current_notification ) {

			/**
			 * Fires if the current notification item is the first in the notification loop.
			 *
			 * @since 1.9.0
			 */
			do_action( 'notifications_loop_start' );
		}
	}

Top ↑

Changelog Changelog

Changelog
Version Description
1.9.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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