Core::subMenuLink( $slug )

Returns the link to the selected sub menu

Description

Source

File: bp-integrations/learndash/buddypress/Core.php

	public function subMenuLink($slug)
    {
		$groupUrl = untrailingslashit(bp_get_group_permalink(groups_get_current_group()));
		$action   = bp_current_action();
    	return untrailingslashit("{$groupUrl}/{$action}/{$slug}");
    }

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.