ReportsGenerator::formatDataForDisplay( $data,  $activity )

Overwrite results value for display

Description

Source

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

	protected function formatDataForDisplay($data, $activity)
	{
		return wp_parse_args([
			'course' => sprintf(
				'<a href="%s" target="_blank">%s</a>',
				get_permalink($activity->activity_course_id),
				$activity->activity_course_title
			)
		], $data);
	}

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.