BP_Notifications_Template::rewind_notifications()

Rewind the blogs and reset blog index.

Description

Source

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

290
291
292
293
294
295
296
297
public function rewind_notifications() {
 
    $this->current_notification = -1;
 
    if ( $this->notification_count > 0 ) {
        $this->notification = $this->notifications[0];
    }
}

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.