LessonsReportsGenerator::formatDataForDisplay( $data,  $activity )

Overwrite results value for display

Description

Source

File: bp-integrations/learndash/buddypress/generators/LessonsReportsGenerator.php

	protected function formatDataForDisplay($data, $activity)
	{
		$data = wp_parse_args([
			'lesson' => sprintf(
				'<a href="%s" target="_blank">%s</a>',
				get_permalink($activity->post_id),
				$activity->post_title
			)
		], $data);

		return parent::formatDataForDisplay($data, $activity);
	}

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.