1. Home
  2. Knowledge Base
  3. API
  4. Function Reference
  5. Function Reference: wlmapi_get_level_member_data

Function Reference: wlmapi_get_level_member_data

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] => [email protected]
            [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

Was this article helpful?

Related Articles

Need Support?

Can't find the answer you're looking for?
Contact Support