pipit_members_find()

Find a member by ID or email address.

pipit_members_find($id_or_email, $return_array=true);

Parameters

Type Description
Int/String Member ID or email
Boolean Whether to return an array containing the member’s data or a PerchMembers_Member object

Return

Array. If the second argument is set to false, then a PerchMembers_Member object is returned.

Usage

// by email address
$member = pipit_members_find('[email protected]');

// by ID
$member = pipit_members_find(34);

// return a PerchMembers_Member object
$Member = pipit_members_find(34, false);
link