BP_Core_Members_Template::the_member()
Set up the current member inside the loop.
Description 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 See also
Source Source
File: bp-members/classes/class-bp-core-members-template.php
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 1.5.0
*/
do_action( 'member_loop_start' );
}
}
Changelog Changelog
| Version | Description |
|---|---|
| 1.0.0 | Introduced. |