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( string $location, array $args = array() )
Retrieve additional fields added to the form programmatically.
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
(array[])
Source Source
File: includes/forms/class-llms-forms.php
private function get_additional_fields( $location, $args = array() ) { /** * Filter to add custom fields to a form programmatically. * * @since 3.0.0 * @since 5.0.0 Moved from deprecated function `LLMS_Person_Handler::get_available_fields()`. * * @param array[] $fields Array of field array suitable to pass to `llms_form_field()`. * @param string $location Form location, one of: "checkout", "registration", or "account". * @param array $args Additional arguments passed to the short-circuit filter. */ return apply_filters( 'lifterlms_get_person_fields', array(), $location, $args ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |