UserData::get_completed_courses( int $course_id )

Get all completed courses data


Description

Pass course ID to get specific course completion data


Parameters

$course_id

(int) (Required)


Return

(array|bool|mixed)


Source

File: classes/UserData.php

	public function get_completed_courses( $course_id = 0 ) {
		if ( $course_id ) {
			return dozent_array_get( $course_id, $this->get( 'completed_courses' ) );
		}

		return $this->get( 'completed_courses' );
	}