Enrol::do_enrol()

Do the enrolment of the course


Description

long description

Example usage:

$enrolment = dozent_enrolment();
$enrolment->course_id = $course_id;
$enrolment->user_id = $user_id;
$enrolment->do_enrol();

Source

File: Model/Enrol.php

	public function do_enrol() {

		do_action( 'dozent_enrolment_before' );

		$is_enrolled = $this->save();

		do_action( 'dozent_enrolment_after', $is_enrolled );
	}

Changelog

Changelog
Version Description
DozentLMS 1.0.0 Introduced.