LLMS_View_Manager::modify_completion( boolean $completed )

Modify the completion status of course, lessons, tracks based on current view.


Description Description

Visitors and students will always show content as not completed.


Top ↑

Parameters Parameters

$completed

(boolean) (Required) The actual status for the current user.


Top ↑

Return Return

(boolean)


Top ↑

Source Source

File: includes/class.llms.view.manager.php

	public function modify_completion( $completed ) {
		switch ( $this->get_view() ) {
			case 'visitor':
				$status = false;
				break;
			case 'student':
				$status = true;
				break;
		}
		return $completed;
	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.7.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.