WooCommerce::new_enrol_status( $status,  $course,  $order_id,  $expired_at )

Set new enrolment status from WooCommerce


Parameters

$status

(Required)

$course

(Required)

$order_id

(Required)

$expired_at

(Required)


Return

(string)


Source

File: classes/WooCommerce.php

	public function new_enrol_status( $status, $course, $order_id, $expired_at ) {
		$order = wc_get_order( $order_id );

		if ( $order ) {
			$status = $order->get_status();
		}

		return $status;
	}

Changelog

Changelog
Version Description
DozentLMS 1.0.0 Introduced.