llms_get_order_by_key( string $key, string $return = 'order' )
Retrieve an LLMS Order ID by the associated order_key
Description Description
Parameters Parameters
- $key
-
(Required) The order key.
- $return
-
(Optional) Type of return, "order" for an instance of the LLMS_Order or "id" to return only the order ID.
Default value: 'order'
Return Return
(mixed) null
when no order found, LLMS_Order when $return
= 'order', or the WP_Post ID as an int
.
Source Source
File: includes/functions/llms.functions.order.php
Changelog Changelog
Version | Description |
---|---|
3.30.1 | Return a real int (instead of a numeric string). |
3.0.0 | Introduced. |