LLMS_Abstract_Database_Store::save()

Save object to the database


Description Description

Creates it if doesn’t already exist, updates if it does.


Top ↑

Return Return

(boolean)


Top ↑

Source Source

File: includes/abstracts/llms.abstract.database.store.php

	public function save() {

		if ( ! $this->id ) {
			$id = $this->create();
			if ( $id ) {
				return true;
			}
			return false;
		} else {
			return $this->update( $this->data );
		}

	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.24.0 Unknown.
3.14.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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