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.

Top ↑

Parameters Parameters


(string) (Required) Form location, one of: "checkout", "registration", or "account".


(array) (Optional) Additional arguments passed to the short-circuit filter.

Default value: array()

Top ↑

Return Return


Top ↑

Source Source

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

	private function get_additional_fields_html( $location, $args = array() ) {

		$html   = '';
		$fields = $this->get_additional_fields( $location, $args );

		foreach ( $fields as $field ) {
			$html .= "\r" . $this->get_custom_field_block_markup( $field );

		return $html;


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.