LLMS_Order_Generator::__construct( array $data )


Parameters Parameters


(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. An LLMS_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.

Top ↑

Return Return


Top ↑

Source Source

File: includes/class-llms-order-generator.php

	public function __construct( $data ) {
		$this->data = $data;

Top ↑

Changelog Changelog

Version Description
7.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.