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


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

Top ↑

Return Return


Top ↑

Source Source

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

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

Top ↑

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.