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.
Parameters Parameters
- $settings
-
(array) (Required) Form field settings (passed to
llms_form_field()
).
Return Return
(string)
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 ) ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |