LLMS_Order::can_be_confirmed()

Determines if an order can be confirmed.


Description Description

An order can be confirmed only when the order’s status is pending.

Additional requirements can be introduced via the filter llms_order_can_be_confirmed.


Top ↑

Return Return

(boolean)


Top ↑

Source Source

File: includes/models/model.llms.order.php

	public function can_be_confirmed() {

		/**
		 * Determine if the order can be confirmed.
		 *
		 * @since 3.34.4
		 *
		 * @param boolean    $can_be_confirmed Whether or not the order can be confirmed.
		 * @param LLMS_Order $order            Order object.
		 * @param string     $gateway_id       Payment gateway ID.
		 */
		return apply_filters(
			'llms_order_can_be_confirmed',
			( 'llms-pending' === $this->get( 'status' ) ),
			$this,
			$this->get( 'payment_gateway' )
		);

	}


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.