bbp_get_component_name()

Return Forums’ component name/ID (‘forums’ by default)

Description

This is used primarily for Notifications integration.

Return

(string)

Source

File: bp-forums/functions.php

function bbp_get_component_name() {

	// Use existing ID
	if ( !empty( bbpress()->extend->buddypress->id ) ) {
		$retval = bbpress()->extend->buddypress->id;

	// Use default
	} else {
		$retval = 'forums';
	}

	return apply_filters( 'bbp_get_component_name', $retval );
}

Changelog

Changelog
Version Description
bbPress (r5232) 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.