LLMS_REST_Users_Controller::update_object( array $prepared, WP_REST_Request $request )
Update the object in the database with prepared data
Parameters Parameters
- $prepared
-
(array) (Required) Prepared item data.
- $request
-
(WP_REST_Request) (Required) Request object.
Return Return
(obj) Object Instance of object from $this->get_object()
.
Source Source
File: libraries/lifterlms-rest/includes/abstracts/class-llms-rest-users-controller.php
} /** * Update the object in the database with prepared data * * @since 1.0.0-beta.1 * * @param array $prepared Prepared item data. * @param WP_REST_Request $request Request object. * @return obj Object Instance of object from `$this->get_object()`. */ protected function update_object( $prepared, $request ) { $prepared['ID'] = $prepared['id'];
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.1 | Introduced. |