Function Reference: wlmapi_delete_member

Deletes an existing member.

Parameters

  • member_id (int) – The ID of the member to delete

Return

Returns a multi-dimensional array containing the operation status.

Example Code

<?php
     $member = wlmapi_delete_member(13);
     print_r($member);
?>

Example Output

Array
(
    [success] => 1
    [supported_verbs] => Array
        (
            [0] => GET
            [1] => PUT
            [2] => DELETE
        )

)

Notes

This functions returns WLMAPIMethods::delete_member($member_id) in core/api-helper/class-api-methods.php