LLMS_Order::can_switch_source()
Determines if the order’s payment source can be changed.
Return Return
(boolean)
Source Source
File: includes/models/model.llms.order.php
public function can_switch_source() { $can_switch = 'llms-active' === $this->get( 'status' ) || $this->can_resubscribe(); /** * Filters whether or not the order's payment source can be changed. * * @since 7.0.0 * * @param boolean $can_switch Whether or not the order's source can be switched. * @param LLMS_Order $order The order object. */ return apply_filters( 'llms_order_can_switch_source', $can_switch, $this ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
7.0.0 | Introduced. |