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.


Top ↑

Parameters Parameters

$order_id

(null|int) (Required) The order ID or null if the lookup didn't yield a result.


Top ↑

Return Return

(int|null) Returns the submitted order ID if it's valid or null.


Top ↑

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;
	}


Top ↑

Changelog 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.