Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
LLMS_Order_Generator::sanitize_retrieved_order_id( null|int $order_id )
Sanitizes the order_id retrieved by {@see LLMS_Order_Generator::get_order_id()} to ensure it can be resumed or confirmed during checkout.
Description Description
Only orders with the llms-pending
status can be resumed or confirmed.
Parameters Parameters
- $order_id
-
(null|int) (Required) The order ID or
null
if the lookup didn't yield a result.
Return Return
(int|null) Returns the submitted order ID if it's valid or null
.
Source Source
File: includes/class-llms-order-generator.php
private function sanitize_retrieved_order_id( $order_id ) { return $order_id && 'llms-pending' === get_post_status( $order_id ) ? $order_id : null; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
7.0.0 | Introduced. |