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.
Parameters Parameters
- $completed
-
(boolean) (Required) The actual status for the current user.
Return Return
(boolean)
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; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.7.0 | Introduced. |