This function’s access is marked private. This means it is not intended for use by other plugin or theme developers, only in this plugin itself. It is listed here for completeness.

Form_Edit_Page_Handler::delete_element_choices( array $element_choice_ids )

Deletes element choices with specific IDs.

Description

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

Changelog
Version Description
1.0.0 Introduced.