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_controlled( array $block )
Creates a WP_Block array definition for the confirmation (controlled) block in a confirm group
Parameters Parameters
- $block
-
(array) (Required) A WP_Block definition array for the primary/default block in the group.
Return Return
(array) A new WP_Block definition array for the controlled block.
Source Source
File: includes/forms/class-llms-form-templates.php
private static function get_confirm_group_controlled( $block ) { $block['blockName'] = 'llms/form-field-text'; $block['attrs'] = wp_parse_args( array( 'field' => $block['confirm'], 'id' => $block['attrs']['id'] . '_confirm', 'name' => $block['attrs']['id'] . '_confirm', 'label' => sprintf( __( 'Confirm %s', 'lifterlms' ), $block['attrs']['label'] ), 'columns' => 6, 'last_column' => is_rtl() ? false : true, 'isConfirmationField' => true, 'llms_visibility' => 'off', 'match' => $block['attrs']['id'], 'data_store' => false, 'data_store_key' => false, ), $block['attrs'] ); return $block; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |