LLMS_Forms::get_custom_field_block_markup( array $settings )

Retrieve the HTML markup for a custom form field block


Description Description

Retrieves an array of LLMS_Form_Field settings, generates the HTML for the field, and wraps it in a wp:html block.


Top ↑

Parameters Parameters

$settings

(array) (Required) Form field settings (passed to llms_form_field()).


Top ↑

Return Return

(string)


Top ↑

Source Source

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

	public function get_custom_field_block_markup( $settings ) {
		return sprintf( '<!-- wp:html %1$s -->%2$s%3$s%2$s<!-- /wp:html -->', wp_json_encode( $settings ), "\r", llms_form_field( $settings, false ) );
	}


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.