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_containers( array $container_ids )

Deletes containers with specific IDs.

Description

Parameters

$container_ids

(array) (Required) Array of container IDs.

Source

File: src/db-objects/forms/form-edit-page-handler.php

	private function delete_containers( $container_ids ) {
		$container_manager = $this->form_manager->get_child_manager( 'containers' );

		foreach ( $container_ids as $container_id ) {
			$container = $container_manager->get( $container_id );
			if ( ! $container ) {
				continue;
			}

			$container->delete();
		}
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.