do_action( 'lifterlms_pre_checkout_form', int $cols , LLMS_Payment_Gateway[] $gateways , string $selected_gateway , string $order_key , LLMS_Coupon|false $coupon , LLMS_Access_Plan $plan , LLMS_Product $product , bool $is_free , string $form_location , string $form_fitle , array $form_fields )
Checkout Form
Parameters Parameters
- $cols
-
(int) Number of columns to use for the form layout.
- $gateways
-
(LLMS_Payment_Gateway[]) Array of enabled payment gateway instances.
- $selected_gateway
-
(string) ID of the currently selected/default payment gateway.
- $order_key
-
(string) Current order key. Empty string for new orders.
- $coupon
-
(LLMS_Coupon|false) Coupon currently applied to the session or
false
when none found. - $plan
-
(LLMS_Access_Plan) Access plan object.
- $product
-
(LLMS_Product) Product object.
- $is_free
-
(bool) Whether or not the access plan is a free plan.
- $form_location
-
(string) Form location id.
- $form_fitle
-
(string) Form title.
- $form_fields
-
(array) Array of LifterLMS Form Fields.
Source Source
Changelog Changelog
Version | Description |
---|---|
5.0.0 | Moved all variable declarations to the checkout shortcode controller. Updated to utilize fields from LLMS_Forms class. |
1.0.0 | Introduced. |