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_settings( array $element_setting_ids )

Deletes element settings with specific IDs.

Description

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

Changelog
Version Description
1.0.0 Introduced.