BP_Notifications_Template::the_notification()
Set up the current notification inside the loop.
Description
Used by bp_the_notification() to set up the current notification data while looping, so that template tags used during that iteration make reference to the current notification.
See also
Source
File: bp-notifications/classes/class-bp-notifications-template.php
345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 | public function the_notification() { $this ->in_the_loop = true; $this ->notification = $this ->next_notification(); // Loop has just started. if ( 0 === $this ->current_notification ) { /** * Fires if the current notification item is the first in the notification loop. * * @since BuddyPress 1.9.0 */ do_action( 'notifications_loop_start' ); } } |
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.