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.


Top ↑

Return Return

(array[]) List of LLMS_Form_Field settings arrays.


Top ↑

Source Source

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


			

Top ↑

Changelog 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.