BP_Notifications_Template::next_notification()

Set up the next notification and iterate index.

Description

Return

(object) The next notification to iterate over.

Source

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

	public function next_notification() {

		$this->current_notification++;

		$this->notification = $this->notifications[ $this->current_notification ];

		return $this->notification;
	}

Changelog

Changelog
Version Description
BuddyPress 1.9.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.