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.


Top ↑

Parameters Parameters

$obj

(obj) (Required) Instantiated object.

$data

(array) (Required) Associative array of data to persist.


Top ↑

Return Return

(obj)


Top ↑

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;

	}


Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0-beta.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.