Retrieves all membership data for the specified member and level.
Parameters
- level_id (int) – The ID of the level to retrieve data for
- member_id (int) – The ID of the member to retrieve data for
Return
Returns a multi-dimensional array containing membership data for the specified member.
Example Code
<?php $member = wlmapi_get_level_member_data(1340726008, 11); print_r($member); ?>
Example Output
Array ( [success] => 1 [member] => Array ( [id] => 11 [user_login] => wray [user_email] => johnismyhero@wlptest.com [level] => stdClass Object ( [Cancelled] => [CancelDate] => [Pending] => 1 [UnConfirmed] => [Expired] => [ExpiryDate] => [Active] => [Status] => Array ( [0] => For Approval ) [Timestamp] => 1344480785 [TxnID] => WL-11-1340726008 ) ) [supported_verbs] => Array ( [0] => GET [1] => PUT [2] => DELETE ) )
Notes
This functions returns WLMAPIMethods::get_level_member_data() in core/api-helper/class-api-methods.php