LLMS_REST_Database_Resource::save( obj $obj, array $data )
Persist data.
Description Description
This method assumes the supplied data has already been validated and sanitized.
Parameters Parameters
- $obj
-
(obj) (Required) Instantiated object.
- $data
-
(array) (Required) Associative array of data to persist.
Return Return
(obj)
Source Source
File: libraries/lifterlms-rest/includes/abstracts/class-llms-rest-database-resource.php
protected function save( $obj, $data ) { $obj->setup( $data )->save(); return $obj; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.1 | Introduced. |