LLMS_Forms::get_free_enroll_form_fields( LLMS_Access_Plan $plan )
Retrieve an array of form fields used for the “free enrollment” form
Description Description
This is the "one-click" enrollment form used when a logged-in user clicks the "checkout" button from an access plan.
This function converts the checkout form to hidden fields, the result is that users with all required fields will be enrolled into the course with a single click (no need to head to the checkout page) and users who are missing r equired information will be directed to the checkout page.
Parameters Parameters
- $plan
-
(Required) Access plan being used for enrollment.
Return Return
(array[]) List of LLMS_Form_Field settings arrays.
Source Source
File: includes/forms/class-llms-forms.php
Changelog Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |