ReportsGenerator::addCourseTimeSpentActivityFields( $strFields,  $queryArgs )

Add course time spent to sql fields statement

Description

Source

File: bp-integrations/learndash/library/ReportsGenerator.php

	public function addCourseTimeSpentActivityFields($strFields, $queryArgs)
	{
		return $strFields .= ', IF(activity_status = 1, activity_completed - activity_started, 0) as activity_time_spent';
	}

Changelog

Changelog
Version Description
BuddyBoss 1.0.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.