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.
Return Return
(boolean)
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' )
);
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 7.0.0 | Introduced. |