LLMS_Form_Handler::get_fields( string $action, string $location, array $args = array() )
Retrieve fields for a given form
Description Description
Ensures the form exists and that the current user can access the form.
Parameters Parameters
- $action
-
(Required) User action to be performed. Either "update" (for an existing user) or "registration" for a new user.
- $location
-
(Required) Form location ID.
- $args
-
(Optional) Additional arguments passed to the short-circuit filter.
Default value: array()
Return Return
(WP_Error|array[]) Array of LLMS_Form_Field arrays on success or an error object on failure.
Source Source
File: includes/forms/class-llms-form-handler.php
Changelog Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |