Deletes element choices with specific IDs.
Description
See also
Parameters
- $element_choice_ids
-
(array) (Required) Array of element choice IDs.
Source
File: src/db-objects/forms/form-edit-page-handler.php
private function delete_element_choices( $element_choice_ids ) { $element_choice_manager = $this->form_manager->get_child_manager( 'containers' )->get_child_manager( 'elements' )->get_child_manager( 'element_choices' ); foreach ( $element_choice_ids as $element_choice_id ) { $element_choice = $element_choice_manager->get( $element_choice_id ); if ( ! $element_choice ) { continue; } $element_choice->delete(); } }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |