BP_Blogs_Template::next_blog()

Set up the next blog and iterate index.

Description

Return

(object) The next blog to iterate over.

Source

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

177
178
179
180
181
182
public function next_blog() {
    $this->current_blog++;
    $this->blog = $this->blogs[ $this->current_blog ];
 
    return $this->blog;
}

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.