LLMS_REST_Database_Resource::delete( int $id )
Delete a the resource.
Parameters Parameters
- $id
-
(int) (Required) Resource ID.
Return Return
(bool) true
on success, false
if the resource couldn't be found or an error was encountered during deletion.
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; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.1 | Introduced. |