public/wordpress/wp-content/plugins/wp-courseware/includes/models/order.php
/**
	 * Can Cancel Order.
	 *
	 * @since 4.3.0
	 *
	 * @return bool True if a user can cancel the order, false otherwise.
	 */
Can Cancel Order.

@return bool True if a user can cancel the order, false otherwise.
Can Cancel Order . @return bool True if a user can cancel the order false otherwise .
public function can_cancel() {
		$can_cancel = true;
		if ( ! in_array( $this->get_status(), apply_filters( 'wpcw_order_valid_statuses_for_cancel', array( 'pending', 'failed' ), $this ) ) ) {
			$can_cancel = false;
		}
		return apply_filters( 'wpcw_order_can_cancel', $can_cancel, $this->get_order_id(), $this );
	}
public function can_cancel ( ) { $ can_cancel = true ; if ( ! in_array ( $ this -> get_status ( ) , apply_filters ( 'wpcw_order_valid_statuses_for_cancel' , array ( 'pending' , 'failed' ) , $ this ) ) ) { $ can_cancel = false ; } return apply_filters ( 'wpcw_order_can_cancel' , $ can_cancel , $ this -> get_order_id ( ) , $ this ) ; }
Can Cancel Order.
Can Cancel Order .
/**
		 * Filter: Can view order?
		 *
		 * @since 4.3.0
		 *
		 * @param bool  $can_cancel The default value.
		 * @param int   $order_id The order id.
		 * @param Order $order The order object.
		 */