Deletes the model from the database.
Description
See also
Return
(true|WP_Error) True on success, or an error object on failure.
Source
File: src/db-objects/submissions/submission.php
public function delete() { $submission_values = $this->get_submission_values(); foreach ( $submission_values as $submission_value ) { $submission_value->delete(); } return parent::delete(); }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |