BP_Activity_Template::user_activities()
Whether there are activity items left in the loop to iterate over.
Description
This method is used by bp_activities() as part of the while loop that controls iteration inside the activities loop, eg: while ( bp_activities() ) { …
See also
Return
(bool) True if there are more activity items to show, otherwise false.
Source
File: bp-activity/classes/class-bp-activity-template.php
367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 | public function user_activities() { if ( ( $this ->current_activity + 1 ) < $this ->activity_count ) { return true; } elseif ( ( $this ->current_activity + 1 ) == $this ->activity_count ) { /** * Fires right before the rewinding of activity posts. * * @since BuddyPress 1.1.0 */ do_action( 'activity_loop_end' ); // Do some cleaning up after the loop. $this ->rewind_activities(); } $this ->in_the_loop = false; return false; } |
Changelog
Version | Description |
---|---|
BuddyPress 1.0.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.