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