public/wordpress/wp-content/plugins/wp-courseware/includes/models/order.php
/**
	 * Delete Subscriptions.
	 *
	 * @since 4.3.0
	 *
	 * @return array An array of deleted subscriptions.
	 */
Delete Subscriptions.

@return array An array of deleted subscriptions.
Delete Subscriptions . @return array An array of deleted subscriptions .
public function delete_subscriptions() {
		$deleted_subscriptions = array();
		if ( $subscriptions = $this->get_subscriptions( array(), true ) ) {
			foreach ( $subscriptions as $subscription ) {
				if ( $subscription->get_id() ) {
					$deleted_subscriptions[ $subscription->get_id() ] = $subscription->delete();
				}
			}
		}
		return $deleted_subscriptions;
	}
public function delete_subscriptions ( ) { $ deleted_subscriptions = array ( ) ; if ( $ subscriptions = $ this -> get_subscriptions ( array ( ) , true ) ) { foreach ( $ subscriptions as $ subscription ) { if ( $ subscription -> get_id ( ) ) { $ deleted_subscriptions [ $ subscription -> get_id ( ) ] = $ subscription -> delete ( ) ; } } } return $ deleted_subscriptions ; }
Delete Subscriptions.
Delete Subscriptions .
/** @var Subscription $subscription */