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_Form_Templates::get_confirm_group_controller( array $block )

Creates a WP_Block array definition for the primary (controller) block in a confirm group


Parameters Parameters

$block

(array) (Required) A WP_Block definition array for the primary/default block in the group.


Top ↑

Return Return

(array) A new WP_Block definition array for the controller block.


Top ↑

Source Source

File: includes/forms/class-llms-form-templates.php

				'isConfirmationControlField' => true,
				'llms_visibility'            => 'off',
				'match'                      => $block['attrs']['id'] . '_confirm',
			),
			$block['attrs']
		);

		return $block;
	}

	/**
	 * Retrieves legacy option's value for a given field and location
	 *
	 * @since 5.0.0
	 *
	 * @param string $field_id The field's identifier as found in the block schema list returned by LLMS_Form_Templates::get_reusable_block_schema().

Top ↑

Changelog Changelog

Changelog
Version Description
5.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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