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

LLMS_Forms_Dynamic_Fields::get_confirm_group( string $id, array[] $blocks )

Get confirm group in a list of blocks for a given block id

Parameters Parameters


(string) (Required) The ID of the field to find the confirm group for.


(array[]) (Required) WP_Block list.

Top ↑

Return Return


Top ↑

Source Source

File: includes/forms/class-llms-forms-dynamic-fields.php

	private function get_confirm_group( $id, $blocks ) {

		foreach ( $blocks as $index => $block ) {

			if ( $block['innerBlocks'] ) {
				if ( ( 'llms/form-field-confirm-group' === $block['blockName'] ) &&
						$this->find_block( $id, $block['innerBlocks'] ) ) {
					return $block;
				$inner = $this->get_confirm_group( $id, $block['innerBlocks'] );
				if ( false !== $inner ) {
					return $inner;

		return false;

Top ↑

Changelog Changelog

Version Description
5.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.