Deletes element settings with specific IDs.
Description
See also
Parameters
- $element_setting_ids
-
(array) (Required) Array of element setting IDs.
Source
File: src/db-objects/forms/form-edit-page-handler.php
private function delete_element_settings( $element_setting_ids ) { $element_setting_manager = $this->form_manager->get_child_manager( 'containers' )->get_child_manager( 'elements' )->get_child_manager( 'element_settings' ); foreach ( $element_setting_ids as $element_setting_id ) { $element_setting = $element_setting_manager->get( $element_setting_id ); if ( ! $element_setting ) { continue; } $element_setting->delete(); } }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |