LLMS_Order::can_resubscribe()
Determine if an order can be resubscribed to
Description Description
Return Return
(bool)
Source Source
File: includes/models/model.llms.order.php
public function can_resubscribe() { $ret = false; if ( $this->is_recurring() ) { $allowed_statuses = apply_filters( 'llms_order_status_can_resubscribe_from', array( 'llms-on-hold', 'llms-pending', 'llms-pending-cancel', ) ); $ret = in_array( $this->get( 'status' ), $allowed_statuses ); } return apply_filters( 'llms_order_can_resubscribe', $ret, $this ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.19.0 | Introduced. |
User Contributed Notes User Contributed Notes
Permalink: