public/wordpress/wp-content/plugins/wp-courseware/includes/models/subscription.php
/**
	 * Can Cancel Subscription?
	 *
	 * @since 4.3.0
	 *
	 * @return bool True if can cancel, False otherwise.
	 */
Can Cancel Subscription.

@return bool True if can cancel, False otherwise.
Can Cancel Subscription . @return bool True if can cancel False otherwise .
public function can_cancel() {
		$can_cancel = true;
		$gateway    = wpcw()->gateways->get_gateway( $this->get_method() );
		if ( ! $gateway || ! $gateway->supports( 'cancellations' ) ) {
			$can_cancel = false;
		}
		if ( $this->has_status( array( 'expired', 'pending-cancel', 'cancelled', 'completed' ) ) ) {
			$can_cancel = false;
		}
		return $can_cancel;
	}
public function can_cancel ( ) { $ can_cancel = true ; $ gateway = wpcw ( ) -> gateways -> get_gateway ( $ this -> get_method ( ) ) ; if ( ! $ gateway || ! $ gateway -> supports ( 'cancellations' ) ) { $ can_cancel = false ; } if ( $ this -> has_status ( array ( 'expired' , 'pending-cancel' , 'cancelled' , 'completed' ) ) ) { $ can_cancel = false ; } return $ can_cancel ; }
Can Cancel Subscription?
Can Cancel Subscription?