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().


(array[]) (Required) Array of WP_Block arrays.

Top ↑

Return Return


Top ↑

Source Source

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

	private function toggle_for_email_address( $email, $blocks ) {

		return $this->add_block(
				'type'  => 'html',
				'id'    => 'llms-field-toggle--email',
				'value' => $this->get_toggle_button_html( '#email_address,#email_address_confirm', $email[1]['attrs']['label'] ),


Top ↑

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.