LLMS_REST_Database_Resource::delete( int $id )

Delete a the resource.


Parameters Parameters

$id

(int) (Required) Resource ID.


Top ↑

Return Return

(bool) true on success, false if the resource couldn't be found or an error was encountered during deletion.


Top ↑

Source Source

File: libraries/lifterlms-rest/includes/abstracts/class-llms-rest-database-resource.php

	public function delete( $id ) {
		$obj = $this->get( $id, false );
		if ( $obj ) {
			return $obj->delete();
		}
		return false;
	}


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.