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::get_additional_fields_html( string $location, array $args = array() )
Retrieve HTML for the form’s additional programmatically-added fields.
Description Description
Gets the HTML for each field from llms_form_field() and wraps it as a wp/html block.
Parameters Parameters
- $location
-
(string) (Required) Form location, one of: "checkout", "registration", or "account".
- $args
-
(array) (Optional) Additional arguments passed to the short-circuit filter.
Default value: array()
Return Return
(string)
Source Source
File: includes/forms/class-llms-forms.php
*
* @param array $settings Form field settings (passed to `llms_form_field()`).
* @return string
*/
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 ) );
}
/**
* Retrieve an array of form fields used for the "free enrollment" form
*
* This is the "one-click" enrollment form used when a logged-in user clicks the "checkout" button
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 5.0.0 | Introduced. |