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/elements/element.php
public function delete() { $element_choices = $this->get_element_choices(); foreach ( $element_choices as $element_choice ) { $element_choice->delete(); } $element_settings = $this->get_element_settings(); foreach ( $element_settings as $element_setting ) { $element_setting->delete(); } return parent::delete(); }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |