LLMS_Order_Generator::__construct( array $data )
Constructor.
Parameters Parameters
- $data
-
(array) (Required) An associative array of input data used to generate the order, usually from $_POST.
- 'llms_plan_id'
(integer) An LLMS_Access_Plan ID. - 'llms_agree_to_terms'
(string) A yes/no value determining whether or not the user has agreed to the site's terms. - 'llms_payment_gateway'
(string) The ID of the payment gateway used to process the order. - 'llms_coupon_code'
(string) Optional. The coupon code string being used. - 'llms_order_key'
(string) Optional. AnLLMS_Order
key used to modify an existing pending order rather than creating a new one. - '...$user_data'
(array) All remaining data is passed to the user creation functions.
- 'llms_plan_id'
Return Return
(void)
Source Source
File: includes/class-llms-order-generator.php
public function __construct( $data ) { $this->data = $data; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
7.0.0 | Introduced. |