public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/classes/userprogress.php
/**
		 * Checks for the course completion date by finding the completed date of the last unit.
		 *
		 * @param Returns date
		 */
Checks for the course completion date by finding the completed date of the last unit.
@param Returns date
Checks for the course completion date by finding the completed date of the last unit . @param Returns date
public function courseCompletedDate() {
			$this->loadFullUnitList();
			if ( ! $this->unitList ) {
				return false;
			}
			global $wpcwdb, $wpdb;
			$wpdb->show_errors();
			if ( $this->isCourseCompleted() ) {
				$last_unit    = end( $this->unitList );
				$last_unit_id = $last_unit->unit_id;
				$last_unit_date = $wpdb->get_var( "SELECT unit_completed_date FROM $wpcwdb->user_progress WHERE unit_id = $last_unit_id AND user_id = $this->userID" );
				return $last_unit_date;
			}
			return;
		}
public function courseCompletedDate ( ) { $ this -> loadFullUnitList ( ) ; if ( ! $ this -> unitList ) { return false ; } global $ wpcwdb , $ wpdb ; $ wpdb -> show_errors ( ) ; if ( $ this -> isCourseCompleted ( ) ) { $ last_unit = end ( $ this -> unitList ) ; $ last_unit_id = $ last_unit -> unit_id ; $ last_unit_date = $ wpdb -> get_var ( " SELECT unit_completed_date FROM  $ wpcwdb -> user_progress  WHERE unit_id =  $ last_unit_id  AND user_id =  $ this -> userID " ) ; return $ last_unit_date ; } return ; }
Checks for the course completion date by finding the completed date of the last unit.
Checks for the course completion date by finding the completed date of the last unit .
// If no units to complete, then not complete.