LLMS_Order::can_resubscribe()

Determine if an order can be resubscribed to


Description Description


Return Return

(bool)


Top ↑

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

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.19.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.





Permalink: