BP_Activity_Template::next_activity()
Set up the next activity item and iterate index.
Description Description
Return Return
(object) The next activity item to iterate over.
Source Source
File: bp-activity/classes/class-bp-activity-template.php
public function next_activity() {
$this->current_activity++;
$this->activity = $this->activities[ $this->current_activity ];
return $this->activity;
}
Changelog Changelog
| Version | Description |
|---|---|
| 1.0.0 | Introduced. |