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

Function Reference: wlmapi_get_members

Retrieves all members.

Parameters

This function accepts no parameters.

Return

Returns a multi-dimensional array containing data for each member.

Example Code

<?php
     $members = wlmapi_get_members();
     print_r($members);
?>

Example Output

Array
(
    [success] => 1
    [members] => Array
        (
            [member] => Array
                (
                    [0] => Array
                        (
                            [id] => 1
                            [user_login] => john
                            [user_email] => johnistheman@wlptest.com
                            [_more_] => /members/1
                        )

                    [1] => Array
                        (
                            [id] => 12
                            [user_login] => stu
                            [user_email] => iagreejohnistheman@wlptest.com
                            [_more_] => /members/12
                        )

                )

        )

    [supported_verbs] => Array
        (
            [0] => GET
            [1] => POST
        )

)

Notes

This functions returns WLMAPIMethods::get_members() 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