BpGroupCourses::display( $groupId = null )

Display the tab content based on the selected sub tab

Description

Source

File: bp-integrations/learndash/buddypress/components/BpGroupCourses.php

	public function display($groupId = null)
	{
		$this->loadSubMenuTemplate($groupId);

		$action = bp_action_variable() ?: 'courses';

		if (! $location = bp_locate_template("groups/single/courses-{$action}.php", true)) {
			bp_locate_template('groups/single/courses-404.php', true);
		}
    }

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.