BP_Core_Members_Template::the_member()
Set up the current member inside the loop.
Description
Used by bp_the_member() to set up the current member data while looping, so that template tags used during that iteration make reference to the current member.
See also
Source
File: bp-members/classes/class-bp-core-members-template.php
304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 | function the_member() { $this ->in_the_loop = true; $this ->member = $this ->next_member(); // Loop has just started. if ( 0 == $this ->current_member ) { /** * Fires if the current member is the first in the loop. * * @since BuddyPress 1.5.0 */ do_action( 'member_loop_start' ); } } |
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.