LLMS_REST_Users_Controller::delete_object( obj $object, WP_REST_Request $request )
Delete the object
Description Description
Note: we do not return 404s when the resource to delete cannot be found. We assume it’s already been deleted and respond with 204. Errors returned by this method should be any error other than a 404!
Parameters Parameters
- $object
-
(Required) Instance of the object from
$this->get_object()
. - $request
-
(Required) Request object.
Return Return
(true|WP_Error) true
when the object is removed, WP_Error
on failure.
Source Source
File: libraries/lifterlms-rest/includes/abstracts/class-llms-rest-users-controller.php
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.1 | Introduced. |