ReportsGenerator::coursePointsEarned( $activity )
Format points earned if enabled
Description
Source
File: bp-integrations/learndash/library/ReportsGenerator.php
protected function coursePointsEarned($activity)
{
if ($activity->activity_type !== 'course') {
return '-';
}
return $activity->activity_status? get_post_meta($activity->activity_course_id, 'course_points', true) : '0';
}
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.