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::toggle_for_email_address( array $email, array[] $blocks )
Adds a toggle link button allowing the user to change their email address
Parameters Parameters
-
(array) (Required) Email field data as located by LLMS_Forms_Dynamic_Fields::find_block().
- $blocks
-
(array[]) (Required) Array of WP_Block arrays.
Return Return
(array[])
Source Source
File: includes/forms/class-llms-forms-dynamic-fields.php
private function toggle_for_email_address( $email, $blocks ) { return $this->add_block( $blocks, array( 'type' => 'html', 'id' => 'llms-field-toggle--email', 'value' => $this->get_toggle_button_html( '#email_address,#email_address_confirm', $email[1]['attrs']['label'] ), ), $email[0] ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |